Click or drag to resize

ResourceManagementClientGetResourcesAsync Method (String, Int32, IEnumerableString, IEnumerableSortingAttribute, CancellationTokenSource)

Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the specified page size, and retrieving the specified attributes

Namespace:  Lithnet.ResourceManagement.Client
Assembly:  Lithnet.ResourceManagement.Client (in Lithnet.ResourceManagement.Client.dll) Version: 1.0.6435.24467
Syntax
public ISearchResultCollection GetResourcesAsync(
	string filter,
	int pageSize,
	IEnumerable<string> attributesToGet,
	IEnumerable<SortingAttribute> sortAttributes,
	CancellationTokenSource cancellationToken
)

Parameters

filter
Type: SystemString
The XPath filter defining the search criteria
pageSize
Type: SystemInt32
The number of results to request from the server at a time
attributesToGet
Type: System.Collections.GenericIEnumerableString
The list of attributes to retrieve
sortAttributes
Type: System.Collections.GenericIEnumerableSortingAttribute
A collection of attribute names and sort directions to order the results with
cancellationToken
Type: System.ThreadingCancellationTokenSource
A cancellation object that can be used to terminate the search

Return Value

Type: ISearchResultCollection
A collection of matching resource objects
See Also