ModelExplorerTreeContainer.CurrentParentElement Property

Gets the parent element of the element that is selected in Model Explorer.

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

Syntax

'宣言
Protected ReadOnly Property CurrentParentElement As ModelElement
'使用
Dim value As ModelElement

value = Me.CurrentParentElement
protected ModelElement CurrentParentElement { get; }
protected:
property ModelElement^ CurrentParentElement {
    ModelElement^ get ();
}
protected function get CurrentParentElement () : ModelElement

Property Value

Type: Microsoft.VisualStudio.Modeling.ModelElement

The parent element of the element that is selected in Model Explorer; if the element has no parent, a null reference (Nothing in Visual Basic).

Permissions

See Also

Reference

ModelExplorerTreeContainer Class

ModelExplorerTreeContainer Members

Microsoft.VisualStudio.Modeling.Shell Namespace