using (var svc = new AdministrationService.AdministrationClient())
{
var request = new AdministrationService.ManagementGroupRequestOfUserLookupListReplaceAllValues();
request.Token = "Token";
request.ManagementGroup = "Management group";
var userLookupListReplaceAllValues = new AdministrationService.UserLookupListReplaceAllValues();
userLookupListReplaceAllValues.UserLookupList_RSN = Guid.Empty;
userLookupListReplaceAllValues.UserLookupList_KeyCode = "User lookup list keycode";
var userLookupListValueList = new List<AdministrationService.UserLookupListValue>();
var userLookupListValue = new AdministrationService.UserLookupListValue();
userLookupListValue.RSN = new Guid("5a5a5bc5-7b5c-4c68-9cdc-8ba90991ddd1");;
userLookupListValue.DisplayValue = "Value1";
userLookupListValue.KeyCode = "V1";
userLookupListValue.SortOrder = 1;
userLookupListValueList.Add(userLookupListValue);
userLookupListValue = new AdministrationService.UserLookupListValue();
userLookupListValue.RSN = Guid.Empty;
userLookupListValue.DisplayValue = "Value2";
userLookupListValue.KeyCode = "V2";
userLookupListValue.SortOrder = 2;
userLookupListValueList.Add(userLookupListValue);
userLookupListReplaceAllValues.Values = userLookupListValueList.ToArray();
request.Value = userLookupListReplaceAllValues;
AdministrationService.Result result = svc.ReplaceAllUserLookupListValues(request);
if (result.FaultCode == 0)
{
}
else
{
throw new Exception(result.FaultDescription);
}
}