ModelElement.IsDeleted Property
Gets the IsDeleted flag and checks to see whether the element has been deleted from the model.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'Declaration
Public ReadOnly Property IsDeleted As Boolean
'Usage
Dim instance As ModelElement
Dim value As Boolean
value = instance.IsDeleted
public bool IsDeleted { get; }
public:
property bool IsDeleted {
bool get ();
}
public function get IsDeleted () : boolean
Property Value
Type: System.Boolean
true if the element has been 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.