ResourceManagementClientGetResourcesAsync Method (String, IEnumerableString, CultureInfo, 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, and retrieving the specified attributes
Namespace:
Lithnet.ResourceManagement.Client
Assembly:
Lithnet.ResourceManagement.Client (in Lithnet.ResourceManagement.Client.dll) Version: 1.0.6435.24467
Syntaxpublic ISearchResultCollection GetResourcesAsync(
string filter,
IEnumerable<string> attributesToGet,
CultureInfo locale,
CancellationTokenSource cancellationToken
)
Public Function GetResourcesAsync (
filter As String,
attributesToGet As IEnumerable(Of String),
locale As CultureInfo,
cancellationToken As CancellationTokenSource
) As ISearchResultCollection
public:
ISearchResultCollection^ GetResourcesAsync(
String^ filter,
IEnumerable<String^>^ attributesToGet,
CultureInfo^ locale,
CancellationTokenSource^ cancellationToken
)
Parameters
- filter
- Type: SystemString
The XPath filter defining the search criteria - attributesToGet
- Type: System.Collections.GenericIEnumerableString
The list of attributes to retrieve - locale
- Type: System.GlobalizationCultureInfo
The culture to use to request a localized version of the objects - 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