| Visual Basic (Declaration) | |
|---|---|
Property Cancel As Boolean | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As IPropertyInterceptorArgs Dim value As Boolean instance.Cancel = value value = instance.Cancel | |
| C# | |
|---|---|
bool Cancel {get; set;} | |
You can cancel both get and set actions. If you set Cancel to true in a PropertyInterceptorAction no further actions will be invoked for that get or set call. In a get, the current Value will be returned from the property getter. In a set, a cancel in a BeforeSet action will cause the backing store not to be updated with the new value, while a cancel in an AfterSet action stops subsequent AfterSet actions from being invoked.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family