Επεξεργασία

Κοινή χρήση μέσω


StateBag.SetItemDirty(String, Boolean) Method

Definition

Sets the Dirty property for the specified StateItem object in the StateBag object.

public:
 void SetItemDirty(System::String ^ key, bool dirty);
public void SetItemDirty (string key, bool dirty);
member this.SetItemDirty : string * bool -> unit
Public Sub SetItemDirty (key As String, dirty As Boolean)

Parameters

key
String

The key that identifies which StateItem in the StateBag to set.

dirty
Boolean

true to mark the state of the item as modified; otherwise, false.

Remarks

The SetItemDirty method is used to prevent or force state management of specific properties, represented by StateItem objects in the StateBag collection.

Applies to

See also