AdministrationClientDeleteRegion Method |
Delete the Region from the submitted Region RSN.
The Region RSN can be fetched from the Web Service Method: SelectRegion.
public Result DeleteRegion( ManagementGroupRequestOfguid request )
using (var svc = new AdministrationService.AdministrationClient()) { var request = new AdministrationService.ManagementGroupRequestOfguid(); request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin request.Value = new Guid("a77f2b48-6046-40dd-9e3b-6a0c209eb0c9");; //Required - RSN of region AdministrationService.Result result = svc.DeleteRegion(request); if (result.FaultCode == 0) { //Request succeeded } else { //Request failed throw new Exception(result.FaultDescription); } }