ModelExplorerTreeContainer.SelectedRole Property

Gets the role 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 SelectedRole As DomainRoleInfo
'使用
Dim value As DomainRoleInfo

value = Me.SelectedRole
protected DomainRoleInfo SelectedRole { get; }
protected:
property DomainRoleInfo^ SelectedRole {
    DomainRoleInfo^ get ();
}
protected function get SelectedRole () : DomainRoleInfo

Property Value

Type: Microsoft.VisualStudio.Modeling.DomainRoleInfo

The role that is selected in Model Explorer; if no role is selected, a null reference (Nothing in Visual Basic).

Remarks

A role describes one end of a binary relationship.

This method is protected, and only the derived child class can access it.

Permissions

See Also

Reference

ModelExplorerTreeContainer Class

ModelExplorerTreeContainer Members

Microsoft.VisualStudio.Modeling.Shell Namespace