ResourceManagementClientGetResourcesAsync Method (String, Int32, 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
WARNING: Due to the way that the resource management client processes unconstrained XPath queries, this function can cause excessive load on the underlying database. If the object type or attributes are known, use the overload of this function that supports specifying the attributes to get
Namespace:
Lithnet.ResourceManagement.Client
Assembly:
Lithnet.ResourceManagement.Client (in Lithnet.ResourceManagement.Client.dll) Version: 1.0.6435.24467
Syntaxpublic ISearchResultCollection GetResourcesAsync(
string filter,
int pageSize,
CancellationTokenSource cancellationToken
)
Public Function GetResourcesAsync (
filter As String,
pageSize As Integer,
cancellationToken As CancellationTokenSource
) As ISearchResultCollection
public:
ISearchResultCollection^ GetResourcesAsync(
String^ filter,
int pageSize,
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 - cancellationToken
- Type: System.ThreadingCancellationTokenSource
A cancellation object that can be used to terminate the search
Return Value
Type:
ISearchResultCollectionA collection of matching resource objects
See Also