共用方式為


SetPassword 方法 (SecureString)

Sets the password for a backup set.

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

語法

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

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

參數

備註

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