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.InterfacesAssembly: 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 stateExamples
using(myFolio.StartUpdate())
{
myFolio.Name = "newName";
myFolio.Description = "newDescription";
}