SetMediaPassword Método (SecureString)
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 SecureString _
)
'Uso
Dim instance As BackupRestoreBase
Dim value As SecureString
instance.SetMediaPassword(value)
public void SetMediaPassword(
SecureString value
)
public:
void SetMediaPassword(
SecureString^ value
)
member SetMediaPassword :
value:SecureString -> unit
public function SetMediaPassword(
value : SecureString
)
Parámetros
- value
Tipo: System.Security. . :: . .SecureString
A SecureString value that specifies the password for the media set.
Comentarios
Use a password to protect the medium when the medium contains one or more backup sets that can be accessed by the same person.