ResourceManagementClientGetResources Method (String, Int32, IEnumerableString, String, Boolean) |
Uses the specified XPath filter to find matching objects in the resource management service, synchronously, 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
Syntaxpublic ISearchResultCollection GetResources(
string filter,
int pageSize,
IEnumerable<string> attributesToGet,
string sortAttribute,
bool sortAscending
)
Public Function GetResources (
filter As String,
pageSize As Integer,
attributesToGet As IEnumerable(Of String),
sortAttribute As String,
sortAscending As Boolean
) As ISearchResultCollection
public:
ISearchResultCollection^ GetResources(
String^ filter,
int pageSize,
IEnumerable<String^>^ attributesToGet,
String^ sortAttribute,
bool sortAscending
)
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 - sortAttribute
- Type: SystemString
The name of the attribute to sort the search results by - sortAscending
- Type: SystemBoolean
Indicates if the attribute sort order should be ascending or descending
Return Value
Type:
ISearchResultCollectionA collection of matching resource objects
See Also