Delen via


ModelExplorerTreeContainer.SelectedRole Property

Gets the role that is selected in Model Explorer.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)

Syntax

'Declaration
Protected ReadOnly Property SelectedRole As DomainRoleInfo
protected DomainRoleInfo SelectedRole { get; }
protected:
property DomainRoleInfo^ SelectedRole {
    DomainRoleInfo^ get ();
}
member SelectedRole : DomainRoleInfo with get
function get SelectedRole () : DomainRoleInfo

Property Value

Type: Microsoft.VisualStudio.Modeling.DomainRoleInfo
The role that is selected in Model Explorer; if no role is selected, nulla 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.

.NET Framework Security

See Also

Reference

ModelExplorerTreeContainer Class

Microsoft.VisualStudio.Modeling.Shell Namespace