Freigeben über


EnumerateResourcesActivity.SortingAttributes Property

An array of the SortingAttribute class that represents the names of attributes to sort the enumeration results by.

Namespace: Microsoft.ResourceManagement.Workflow.Activities
Assembly: Microsoft.ResourceManagement (in Microsoft.ResourceManagement.dll)

Usage

'Usage
Dim instance As EnumerateResourcesActivity
Dim value As SortingAttribute()

value = instance.SortingAttributes

instance.SortingAttributes = value

Syntax

'Declaration
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)> _
Public Property SortingAttributes As SortingAttribute()
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)] 
public SortingAttribute[] SortingAttributes { get; set; }
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility::Visible)] 
public:
property array<SortingAttribute^>^ SortingAttributes {
    array<SortingAttribute^>^ get ();
    void set (array<SortingAttribute^>^ value);
}
/** @property */
public SortingAttribute[] get_SortingAttributes ()

/** @property */
public void set_SortingAttributes (SortingAttribute[] value)
public function get SortingAttributes () : SortingAttribute[]

public function set SortingAttributes (value : SortingAttribute[])

Property Value

An array of the SortingAttribute class.

Example

The following example uses the SortingAttributes property to return query results that are sorted by the “DisplayName” attribute.

this.enumerateResourcesActivity1.SortingAttributes = 
new Microsoft.ResourceManagement.WebServices.WSEnumeration.SortingAttribute[]
{ 
new Microsoft.ResourceManagement.WebServices.WSEnumeration.SortingAttribute("DisplayName") 
};

Remarks

This property allows you to specify multiple sorting attributes; currently, the FIM Service only supports sorting on one attribute.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003 , Windows Server 2008, and Windows 2000

Target Platforms

Change History

See Also

Reference

EnumerateResourcesActivity Class
EnumerateResourcesActivity Members
Microsoft.ResourceManagement.Workflow.Activities Namespace
EnumerateResourcesActivity