SetMediaPassword 方法 (String)

Sets the password for a media set.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.SmoExtended(在 Microsoft.SqlServer.SmoExtended.dll 中)

语法

声明
Public Sub SetMediaPassword ( _
    value As String _
)
用法
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
)

参数

注释

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