Click or drag to resize

DocumentsClientSelectDocuments Method

Syntax
C#
public ResultOfPagedCollectionOfDocument SelectDocuments(
	ManagementGroupRequestOfDocumentsSearch request
)

Parameters

request
Type: DocumentsServiceManagementGroupRequestOfDocumentsSearch

Return Value

Type: ResultOfPagedCollectionOfDocument
Examples
C#
using (var svc = new DocumentsService.DocumentsClient())
{
  var request = new DocumentsService.ManagementGroupRequestOfDocumentsSearch();
  request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin
  request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin

  var document = new DocumentsService.DocumentsSearch();
  document.Entity_RSN = new Guid("fc2ca648-929b-4375-8152-a89481b4b4b3");; //Required - RSN of entity the note is linked to
  document.PageNumber = 1;// Optional - Defaults to 1
  document.PageSize = 100;// Optional - Defaults to 100

  request.Value = document;//Required

  DocumentsService.ResultOfPagedCollectionOfDocument result = svc.SelectDocuments(request);

  if (result.FaultCode == 0)
  {
    //Request succeeded
  }
  else
  {
    //Request failed
    throw new Exception(result.FaultDescription);
  }
}
See Also