Edit

Share via


StateBag.SetItemDirty(String, Boolean) Method

Definition

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

public void SetItemDirty(string key, bool dirty);

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

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also