共用方式為


ModelExplorerTreeContainer.CurrentParentElement 屬性

取得父項目中所選取的項目模型總管

命名空間:  Microsoft.VisualStudio.Modeling.Shell
組件:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll 中)

語法

'宣告
Protected ReadOnly Property CurrentParentElement As ModelElement
protected ModelElement CurrentParentElement { get; }

屬性值

型別:Microsoft.VisualStudio.Modeling.ModelElement
在已選取之項目的父項目模型總管。 如果項目沒有父代, nullnull 參考 (即 Visual Basic 中的 Nothing)。

.NET Framework 安全性

請參閱

參考

ModelExplorerTreeContainer 類別

Microsoft.VisualStudio.Modeling.Shell 命名空間