Compartir a través de


SetMediaPassword Método (String)

Sets the password for a media set.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.SmoExtended (en Microsoft.SqlServer.SmoExtended.dll)

Sintaxis

'Declaración
Public Sub SetMediaPassword ( _
    value As String _
)
'Uso
Dim instance As BackupRestoreBase
Dim value As String

instance.SetMediaPassword(value)
public void SetMediaPassword(
    string value
)
public:
void SetMediaPassword(
    String^ value
)
member SetMediaPassword : 
        value:string -> unit 
public function SetMediaPassword(
    value : String
)

Parámetros

Notas

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