BackupRestoreBase.SetMediaPassword Method (SecureString)
Sets the password for a media set.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.SmoExtended (in microsoft.sqlserver.smoextended.dll)
Syntax
'Deklaracja
Public Sub SetMediaPassword ( _
value As SecureString _
)
public void SetMediaPassword (
SecureString value
)
public:
void SetMediaPassword (
SecureString^ value
)
public void SetMediaPassword (
SecureString value
)
public function SetMediaPassword (
value : SecureString
)
Parameters
- value
A SecureString value that specifies the password for the media set.
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.
Thread Safety
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.