Click or drag to resize

AdministrationClientUpdateUserLookupList Method

Syntax
C#
public Result UpdateUserLookupList(
	ManagementGroupRequestOfUserLookupList request
)

Parameters

request
Type: AdministrationServiceManagementGroupRequestOfUserLookupList

Return Value

Type: Result
Examples
C#
using (var svc = new AdministrationService.AdministrationClient())
{
  var request = new AdministrationService.ManagementGroupRequestOfUserLookupList();
  request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin
  request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin

  var userLookupList = new AdministrationService.UserLookupList();
  userLookupList.RSN = new Guid("aadb27b9-3fb9-4bcf-a9f0-7231078bcf05");; //Required 
  userLookupList.KeyCode = "Keycode"; //Required
  userLookupList.DisplayValue = "Display value"; //Required
  userLookupList.SortOrder = 1; //Optional
  //userLookupList.SequenceNumber ignored

  // add userLookupList to request
  request.Value = userLookupList;//Required 

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