IWsBackupSetResetBackupAccountPassword Method |
Note: This API is now obsolete.
Namespace: Aruba.Cloud.WsBackup
[ObsoleteAttribute("Method no more supported, use instead WsBackup::SetChangeBackupAccountPassword")] [OperationContractAttribute] WsResult SetResetBackupAccountPassword( int backupAccountID )
Exception | Condition |
---|---|
NotSupportedException | Method no more supported, use instead WsBackup::SetChangeBackupAccountPassword |
/// WsBackupClient.SetResetBackupAccountPassword Method (c# .NET) public static string SetResetBackupAccountPassword(WsBackupClient client, int backupAccountID) { //specify the account login details client.ClientCredentials.UserName.UserName = "ARU-0000"; client.ClientCredentials.UserName.Password = "0123456789"; StringBuilder stringBuilder = new StringBuilder(); try { // call method WsResult // obtaining a SetResetBackupAccountPassword item WsResult result = client.SetResetBackupAccountPassword(backupAccountID); // if the call is Success print returned values if (result.Success) { stringBuilder.Append("Operation ends successfully\n"); } else { throw new ApplicationException(result.ResultMessage); } } catch (Exception ex) { // re-run the error throw new ApplicationException(ex.Message); } return stringBuilder.ToString(); }