AddPrivateKey 方法 (String, String)

Adds a private key to the certificate with the specified decryption password.

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

语法

声明
Public Sub AddPrivateKey ( _
    privateKeyPath As String, _
    decryptionPassword As String _
)
用法
Dim instance As Certificate
Dim privateKeyPath As String
Dim decryptionPassword As String

instance.AddPrivateKey(privateKeyPath, _
    decryptionPassword)
public void AddPrivateKey(
    string privateKeyPath,
    string decryptionPassword
)
public:
void AddPrivateKey(
    String^ privateKeyPath, 
    String^ decryptionPassword
)
member AddPrivateKey : 
        privateKeyPath:string * 
        decryptionPassword:string -> unit 
public function AddPrivateKey(
    privateKeyPath : String, 
    decryptionPassword : String
)

参数

示例

使用加密