SessionStateItemCollection.Dirty Propriedade
Definição
Obtém ou define um valor que indica se a coleção foi marcada como alterada.Gets or sets a value indicating whether the collection has been marked as changed.
public:
property bool Dirty { bool get(); void set(bool value); };
public bool Dirty { get; set; }
member this.Dirty : bool with get, set
Public Property Dirty As Boolean
Valor da propriedade
true Se o SessionStateItemCollection conteúdo tiver sido alterado; caso contrário, false .true if the SessionStateItemCollection contents have been changed; otherwise, false.
Implementações
Comentários
A Dirty propriedade é usada para indicar se o conteúdo da SessionStateItemCollection coleção foi alterado.The Dirty property is used to indicate whether the contents of the SessionStateItemCollection collection have changed.
A Dirty propriedade é definida como true quando um valor de objeto é definido ou adicionado à coleção usando a Item[] propriedade e quando um ou mais valores de objeto são removidos da coleção usando os Remove RemoveAt métodos, ou Clear .The Dirty property is set to true when an object value is set or added to the collection using the Item[] property and when one or more object values are removed from the collection using the Remove, RemoveAt, or Clear methods.
A Dirty propriedade também é definida como true quando um objeto mutável é recuperado da coleção usando a Item[] propriedade.The Dirty property is also set to true when a mutable object is retrieved from the collection using the Item[] property.
Chamar o Deserialize método para popular uma SessionStateItemCollection coleção resulta na Dirty definição da propriedade como false .Calling the Deserialize method to populate a SessionStateItemCollection collection results in the Dirty property being set to false.