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 命名空间