Suppress update events. Use "Using" statement to automatically dispose and reset Event update switch. Put the actual object property changes inside the using block

Namespace: Cartella.Interfaces
Assembly: CartellaData (in CartellaData.dll) Version: 4.1.0.171 (4.1.0.171)

Syntax

C#
IDisposable StartUpdate(
	bool validate
)
Visual Basic
Function StartUpdate ( _
	validate As Boolean _
) As IDisposable
Visual C++
IDisposable^ StartUpdate(
	bool validate
)

Parameters

validate
Type: System..::..Boolean

Return Value

Disposable object. After disposing, reset object state

Examples

using(myFolio.StartUpdate()) { myFolio.Name = "newName"; myFolio.Description = "newDescription"; }

See Also