BackupRestoreBase.SetMediaPassword BackupRestoreBase.SetMediaPassword BackupRestoreBase.SetMediaPassword Method

Definition

Sets the password for a media set.

Overloads

SetMediaPassword(SecureString) SetMediaPassword(SecureString) SetMediaPassword(SecureString)

Sets the password for a media set.

SetMediaPassword(String) SetMediaPassword(String) SetMediaPassword(String)

Sets the password for a media set.

SetMediaPassword(SecureString) SetMediaPassword(SecureString) SetMediaPassword(SecureString)

Warning

This API is now obsolete.

Sets the password for a media set.

public:
 void SetMediaPassword(System::Security::SecureString ^ value);
[System.Obsolete]
public void SetMediaPassword (System.Security.SecureString value);
Public Sub SetMediaPassword (value As SecureString)
Parameters
value
SecureString SecureString SecureString

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

Examples

Backing Up and Restoring Databases and Transaction Logs

Remarks

Use a password to protect the medium when the medium contains one or more backup sets that can be accessed by the same person.

SetMediaPassword(String) SetMediaPassword(String) SetMediaPassword(String)

Warning

This API is now obsolete.

Sets the password for a media set.

public:
 void SetMediaPassword(System::String ^ value);
[System.Obsolete]
public void SetMediaPassword (string value);
Public Sub SetMediaPassword (value As String)
Parameters
value
String String String

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

Examples

Backing Up and Restoring Databases and Transaction Logs

Remarks

Use a password to protect the medium when the medium contains one or more backup sets that can be accessed by the same person.

Applies to