SettingsPropertyValue.IsDirty Propriedade
Definição
Obtém ou define se o valor de um objeto SettingsProperty foi alterado.Gets or sets whether the value of a SettingsProperty object has changed.
public:
property bool IsDirty { bool get(); void set(bool value); };
public bool IsDirty { get; set; }
member this.IsDirty : bool with get, set
Public Property IsDirty As Boolean
Valor da propriedade
true se o valor de um objeto SettingsProperty foi alterado; caso contrário, false.true if the value of a SettingsProperty object has changed; otherwise, false.
Comentários
A IsDirty propriedade indica que o valor armazenado por essa classe foi alterado.The IsDirty property indicates that the value stored by this class has changed. O padrão é false.The default is false. A IsDirty propriedade é definida como true sob as seguintes condições:The IsDirty property is set to true under the following conditions:
O valor contido no SettingsPropertyValue objeto é alterado.The value contained in the SettingsPropertyValue object is changed.
O valor contido no SettingsPropertyValue objeto é acessado e o valor não é uma cadeia de caracteres ou um tipo primitivo, como,,
intfloatrealouDateTime.The value contained in the SettingsPropertyValue object is accessed, and the value is not a string or a primitive type such asint,float,real, orDateTime. Quando o valor gerenciado por um SettingsPropertyValue objeto é um tipo complexo (por exemplo ArrayList , um), não há nenhuma maneira de um SettingsPropertyValue objeto detectar quando as alterações foram feitas.When the value managed by a SettingsPropertyValue object is a complex type (for example an ArrayList), there is no way for a SettingsPropertyValue object to detect when changes have been made. Como resultado, o SettingsPropertyValue objeto pessimistically pressupõe que um tipo complexo é sujo após ter sido acessado a partir da PropertyValue propriedade.As a result, the SettingsPropertyValue object pessimistically assumes that a complex type is dirty once it has been accessed from the PropertyValue property.