Compartilhar via


ModelExplorerTreeContainer.SelectedRole Property

Gets the role that is selected in Model Explorer.

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

Syntax

'Declaração
Protected ReadOnly Property SelectedRole As DomainRoleInfo
    Get
protected DomainRoleInfo SelectedRole { get; }
protected:
property DomainRoleInfo^ SelectedRole {
    DomainRoleInfo^ get ();
}
member SelectedRole : DomainRoleInfo
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