Export (0) Print
Expand All

StateBag.SetItemDirty Method

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

Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)

public void SetItemDirty (
	string key,
	bool dirty
public void SetItemDirty (
	String key, 
	boolean dirty
public function SetItemDirty (
	key : String, 
	dirty : boolean
Not applicable.



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


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

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

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

© 2015 Microsoft