共用方式為


SetPassword 方法 (String)

Sets the password for a backup set.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.SmoExtended (在 Microsoft.SqlServer.SmoExtended.dll 中)

語法

'宣告
Public Sub SetPassword ( _
    value As String _
)
'用途
Dim instance As BackupRestoreBase
Dim value As String

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

參數

備註

Use passwords to protect the backup sets if the backup medium is used to back up several databases with different owners.