ModelExplorerTreeContainer.SelectedRole 属性

获取在 **“模型资源管理器”**中所选的角色。

命名空间:  Microsoft.VisualStudio.Modeling.Shell
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Shell.12.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 命名空间