BackupRestoreBase.SetPassword BackupRestoreBase.SetPassword BackupRestoreBase.SetPassword Method

Definition

Sets the password for a backup set.

Overloads

SetPassword(SecureString) SetPassword(SecureString) SetPassword(SecureString)

Sets the password for a backup set.

SetPassword(String) SetPassword(String) SetPassword(String)

Sets the password for a backup set.

SetPassword(SecureString) SetPassword(SecureString) SetPassword(SecureString)

Sets the password for a backup set.

public:
 void SetPassword(System::Security::SecureString ^ value);
public void SetPassword (System.Security.SecureString value);
Public Sub SetPassword (value As SecureString)
Parameters
value
SecureString SecureString SecureString

A SecureString value that specifies the password for the backup set.

Examples

Backing Up and Restoring Databases and Transaction Logs

Remarks

Use passwords to protect the backup sets if the backup medium is used to back up several databases with different owners.

See Also

SetPassword(String) SetPassword(String) SetPassword(String)

Sets the password for a backup set.

public:
 void SetPassword(System::String ^ value);
public void SetPassword (string value);
Public Sub SetPassword (value As String)
Parameters
value
String String String

A String value that specifies the password for the backup set.

Examples

Backing Up and Restoring Databases and Transaction Logs

Remarks

Use passwords to protect the backup sets if the backup medium is used to back up several databases with different owners.

Applies to