Поделиться через


Метод SetMediaPassword (SecureString)

Sets the password for a media set.

Пространство имен:  Microsoft.SqlServer.Management.Smo
Сборка:  Microsoft.SqlServer.SmoExtended (в Microsoft.SqlServer.SmoExtended.dll)

Синтаксис

'Декларация
Public Sub SetMediaPassword ( _
    value As SecureString _
)
'Применение
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
)

Параметры

Замечания

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