Click or drag to resize

AdministrationClientInsertUserLookupList Method

Syntax
C#
public Result InsertUserLookupList(
	ManagementGroupRequestOfUserLookupListCreate request
)

Parameters

request
Type: AdministrationServiceManagementGroupRequestOfUserLookupListCreate

Return Value

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

  var userLookupListCreate = new AdministrationService.UserLookupListCreate();
  userLookupListCreate.RSN = Guid.NewGuid();//Optional - will be generated if not supplied
  userLookupListCreate.DisplayValue = "Preferred ice cream flavour"; //Required
  userLookupListCreate.KeyCode = "Keycode"; //Required - must be unique
  userLookupListCreate.SortOrder = 1; //Required

  request.Value = userLookupListCreate;//Required

  AdministrationService.Result result = svc.InsertUserLookupList(request);

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