Version

SetItemDirty Method

Sets an entry of the dictionary to dirty status.
Syntax
'Declaration
 
Sub SetItemDirty( _
   ByVal key As String, _
   ByVal isDirty As Boolean _
) 
void SetItemDirty( 
   string key,
   bool isDirty
)

Parameters

key
Identifies the property to dirty, this is usually the name of the property (although it may be an abbreviation of the property's name).
isDirty
When true, the property is considered dirty and will be persisted in viewstate if Track is called.
Remarks

This will set an item to dirty status without a corresponding Value being assigned; the developer should always associate a Value with a dirtied property.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also