共用方式為


ModelExplorerTreeContainer.SelectedRole 屬性

取得角色中所選取的模型總管

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

語法

'宣告
Protected ReadOnly Property SelectedRole As DomainRoleInfo
protected DomainRoleInfo SelectedRole { get; }

屬性值

型別:Microsoft.VisualStudio.Modeling.DomainRoleInfo
角色中所選取的模型總管。 如果未不選取任何角色, nullnull 參考 (即 Visual Basic 中的 Nothing)。

備註

角色描述二元關聯性的一端。

這個方法受到保護,因此只有衍生的子類別可以存取它。

.NET Framework 安全性

請參閱

參考

ModelExplorerTreeContainer 類別

Microsoft.VisualStudio.Modeling.Shell 命名空間