ModelElement.IsDeleting Property
Gets the IsDeleting flag and verifies whether the element is currently being deleted from the model.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'Declaration
Public ReadOnly Property IsDeleting As Boolean
'Usage
Dim instance As ModelElement
Dim value As Boolean
value = instance.IsDeleting
public bool IsDeleting { get; }
public:
property bool IsDeleting {
bool get ();
}
public function get IsDeleting () : boolean
Property Value
Type: System.Boolean
true if the element is being deleted from the model; otherwise, false.
Remarks
Deleted elements are not immediately destroyed. This enables the undo command to undo the deletion.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.