共用方式為


MasterKey.Export 方法

Saves the database master key to the specified system path location by using the specified password.

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

語法

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

instance.Export(path, password)
public void Export(
    string path,
    string password
)
public:
void Export(
    String^ path, 
    String^ password
)
member Export : 
        path:string * 
        password:string -> unit
public function Export(
    path : String, 
    password : String
)

參數

  • path
    型別:System.String
    A String value that specifies the system path location of the file to which to save the master key.
  • password
    型別:System.String
    A String value that specifies the password with which to encrypt and decrypt the master key.

範例

呼叫方法

請參閱

參考

MasterKey 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

加密階層

CREATE MASTER KEY (Transact-SQL)