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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.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: System.Collections.Generic.IList<DomainRole>Roles to be sorted.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.