SetDirty Method

StateBag.SetDirty Method

Sets the state of the StateBag object as well as the Dirty property of each of the StateItem objects contained by it.

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

public void SetDirty (
	bool dirty
)
public void SetDirty (
	boolean dirty
)
public function SetDirty (
	dirty : boolean
)
Not applicable.

Parameters

dirty

true to mark the state of the collection and its items as modified; otherwise, false.

The SetDirty method is used to force the collection and its contents to be serialized during a call to the System.Web.UI.IStateManager.SaveViewState method.

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

Community Additions

ADD
Show:
© 2016 Microsoft