共用方式為


ModelElement.IsActive Property

Gets the IsActive flag and verifies to see whether the element is active.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property IsActive As Boolean
[BrowsableAttribute(false)]
public bool IsActive { get; }
[BrowsableAttribute(false)]
public:
property bool IsActive {
    bool get ();
}
[<BrowsableAttribute(false)>]
member IsActive : bool with get
function get IsActive () : boolean

Property Value

Type: System.Boolean
true if the element is active; otherwise, false.

Remarks

true indicates the element is currently active in the model.

false indicates the element has been deleted or is being deleted.

.NET Framework Security

See Also

Reference

ModelElement Class

Microsoft.VisualStudio.Modeling Namespace