Поделиться через


Метод AddPrivateKey (String, String, String)

Adds a private key to the certificate with the specified decryption and encryption passwords.

Пространство имен:  Microsoft.SqlServer.Management.Smo
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
Public Sub AddPrivateKey ( _
    privateKeyPath As String, _
    decryptionPassword As String, _
    encryptionPassword As String _
)
'Применение
Dim instance As Certificate
Dim privateKeyPath As String
Dim decryptionPassword As String
Dim encryptionPassword As String

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

Параметры