Delen via


RelationshipHasRoles.GetRoles Method

Gets a list of Roles.

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

Syntax

'Declaration
Public Shared Function GetRoles ( _
    element As DomainRelationship _
) As ReadOnlyLinkedElementCollection(Of DomainRole)
public static ReadOnlyLinkedElementCollection<DomainRole> GetRoles(
    DomainRelationship element
)
public:
static ReadOnlyLinkedElementCollection<DomainRole^>^ GetRoles(
    DomainRelationship^ element
)
static member GetRoles : 
        element:DomainRelationship -> ReadOnlyLinkedElementCollection<DomainRole> 
public static function GetRoles(
    element : DomainRelationship
) : ReadOnlyLinkedElementCollection<DomainRole>

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.ReadOnlyLinkedElementCollection<DomainRole>

.NET Framework Security

See Also

Reference

RelationshipHasRoles Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace