Click or drag to resize

AdministrationClientUpdateUserLookupListValue Method

Syntax
C#
public Result UpdateUserLookupListValue(
	ManagementGroupRequestOfUserLookupListValue request
)

Parameters

request
Type: AdministrationServiceManagementGroupRequestOfUserLookupListValue

Return Value

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

  var userLookupListValue = new AdministrationService.UserLookupListValue();
  userLookupListValue.RSN = new Guid("20702149-7a81-492c-93ca-d203b62bb5e0");; //Required 
  userLookupListValue.KeyCode = "Keycode"; //Required
  userLookupListValue.DisplayValue = "Display value"; //Optional
  userLookupListValue.SortOrder = 1; //Optional
  //all other userLookupListValue properties ignored

  // add userLookupListValue to request
  request.Value = userLookupListValue;

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