AdministrationClientUpdateRegion Method |
Update the Region Detail from the submitted Values.
The Region RSN can be fetched from the Web Service Method: SelectRegion.
public Result UpdateRegion( ManagementGroupRequestOfRegion request )
using (var svc = new AdministrationService.AdministrationClient()) { var request = new AdministrationService.ManagementGroupRequestOfRegion(); request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin var region = new AdministrationService.Region(); region.RSN = new Guid("775e8df9-639c-4dbe-b88e-8f673ba0a326");; //Required region.Region_Name = "Northland"; //Required region.Region_ID = "NL"; //Required region.DisplayOrder = 1; //Required // add region to request request.Value = region;//Required AdministrationService.Result result = svc.UpdateRegion(request); if (result.FaultCode == 0) { //Request succeeded } else { //Request failed throw new Exception(result.FaultDescription); } }