Click or drag to resize

IWsBackupSetSubscribers Method

Set subcribers for backup

Namespace:  Aruba.Cloud.WsBackup
Assembly:  Aruba.Cloud.WsBackup (in Aruba.Cloud.WsBackup.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[OperationContractAttribute]
WsResult SetSubscribers(
	BackupAccountSubscribers backupAccountSubscribers
)

Parameters

backupAccountSubscribers
Type: Aruba.Cloud.WsBackup.EntitiesBackupAccountSubscribers
Backup Account Subcribers

Return Value

Type: WsResult
Examples
By the method IWsBackup SetSubscribers you can set a List of subscribers to the specific backup Account
/// WsBackupClient.SetSubscribers     Method (c# .NET)
public static string SetSubscribers(WsBackupClient client,
BackupAccountSubscribers backupAccountSubscribers)
{
//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 SetSubscribers  item
WsResult result = client.SetSubscribers(backupAccountSubscribers);

// 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();
}
See Also