CodeGenerationUtilities.SortRoles Method

Sort DomainRoles based on XmlRelationshipElement.Order (if specified). By default, the order of each role is 0. Roles with smaller order will appear first. Roles of the same order will not be sorted (i.e. they'll keep their relative order after sorting). The sorting is in-place, so the passed-in collection will be changed directly.

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

Syntax

'Declaration
Public Shared Sub SortRoles ( _
    roles As IList(Of DomainRole) _
)
public static void SortRoles(
    IList<DomainRole> roles
)
public:
static void SortRoles(
    IList<DomainRole^>^ roles
)
static member SortRoles : 
        roles:IList<DomainRole> -> unit
public static function SortRoles(
    roles : IList<DomainRole>
)

Parameters

  • roles
    Type: IList<DomainRole>

    Roles to be sorted.

.NET Framework Security

See Also

Reference

CodeGenerationUtilities Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace