IWsDomainsSetDomainUnlockStatus Method |
Namespace: Aruba.Cloud.Domains.WsDomains
[OperationContractAttribute] WsResult SetDomainUnlockStatus( SetDomainLockStatusRequest request )
/// WsDomains.SetDomainLockStatus and WsDomains.SetDomainUnlockStatus Method (c# .NET) public static string SetDomainLockStatus(WsDomainsClient client, String domainFullName) { //specify the account login details client.ClientCredentials.UserName.UserName = "ARU-0000"; client.ClientCredentials.UserName.Password = "0123456789"; StringBuilder stringBuilder = new StringBuilder(); try { // create the request object SetDomainLockStatusRequest request = new SetDomainLockStatusRequest(); request.Body = new InputDomainNameEntity(); request.Body.DomainFullName = domainFullName; // call method SetDomainLockStatus // obtaining a WsResult item WsResult result = client.SetDomainLockStatus(request); //if the call is Success print history values if (result.Success) { // get Value returned from server stringBuilder.Append("Operation successfully. Result Code:"); stringBuilder.Append(result.ResultCode); } else { throw new ApplicationException(result.ResultMessage); } } catch (Exception ex) { // re-run the error throw new ApplicationException(ex.Message); } return stringBuilder.ToString(); }