MasterKey.Create 方法 (String, String, String)

Creates a master key from the specified file and that has the specified encryption and decryption passwords.

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

语法

声明
Public Sub Create ( _
    path As String, _
    decryptionPassword As String, _
    encryptionPassword As String _
)
用法
Dim instance As MasterKey 
Dim path As String 
Dim decryptionPassword As String 
Dim encryptionPassword As String

instance.Create(path, decryptionPassword, _
    encryptionPassword)
public void Create(
    string path,
    string decryptionPassword,
    string encryptionPassword
)
public:
void Create(
    String^ path, 
    String^ decryptionPassword, 
    String^ encryptionPassword
)
member Create : 
        path:string * 
        decryptionPassword:string * 
        encryptionPassword:string -> unit
public function Create(
    path : String, 
    decryptionPassword : String, 
    encryptionPassword : String
)

参数

  • path
    类型:System.String
    A String value that specifies the system path ___location of the file from which to load the master key.
  • decryptionPassword
    类型:System.String
    A String value that specifies the password with which to decrypt the master key.
  • encryptionPassword
    类型:System.String
    A String value that specifies the password with which to encrypt the master key.

示例

调用方法

请参阅

参考

MasterKey 类

Create 重载

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

加密层次结构

CREATE MASTER KEY (Transact-SQL)