共用方式為


MasterKey.Regenerate 方法 (String)

Regenerates the database master key by using the specified new password.

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

語法

'宣告
Public Sub Regenerate ( _
    password As String _
)
'用途
Dim instance As MasterKey 
Dim password As String

instance.Regenerate(password)
public void Regenerate(
    string password
)
public:
void Regenerate(
    String^ password
)
member Regenerate : 
        password:string -> unit
public function Regenerate(
    password : String
)

參數

  • password
    型別:System.String
    A String value that specifies the password with which to encrypt and decrypt the master key.

範例

呼叫方法

請參閱

參考

MasterKey 類別

Regenerate 多載

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

加密階層

CREATE MASTER KEY (Transact-SQL)