ResourceManagementClientGetResourcesAsync Method (String, 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 default 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,
CancellationTokenSource cancellationToken
)
Public Function GetResourcesAsync (
filter As String,
cancellationToken As CancellationTokenSource
) As ISearchResultCollection
public:
ISearchResultCollection^ GetResourcesAsync(
String^ filter,
CancellationTokenSource^ cancellationToken
)
Parameters
- filter
- Type: SystemString
The XPath filter defining the search criteria - 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