Condividi tramite


Metodo AddPrivateKey (String, String)

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

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public Sub AddPrivateKey ( _
    privateKeyPath As String, _
    decryptionPassword As String _
)
'Utilizzo
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
)

Parametri