Condividi tramite


Metodo SymmetricKey.OpenWithCertificate (String, String)

Opens the symmetric key with a certificate.

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

Sintassi

'Dichiarazione
Public Sub OpenWithCertificate ( _
    certificateName As String, _
    privateKeyPassword As String _
)
'Utilizzo
Dim instance As SymmetricKey 
Dim certificateName As String 
Dim privateKeyPassword As String

instance.OpenWithCertificate(certificateName, _
    privateKeyPassword)
public void OpenWithCertificate(
    string certificateName,
    string privateKeyPassword
)
public:
void OpenWithCertificate(
    String^ certificateName, 
    String^ privateKeyPassword
)
member OpenWithCertificate : 
        certificateName:string * 
        privateKeyPassword:string -> unit
public function OpenWithCertificate(
    certificateName : String, 
    privateKeyPassword : String
)

Parametri

  • privateKeyPassword
    Tipo: System.String
    A String value that specifies the password that was used to encrypt the private key of the certificate.

Esempi

Utilizzo della crittografia

Vedere anche

Riferimento

SymmetricKey Classe

Overload OpenWithCertificate

Spazio dei nomi Microsoft.SqlServer.Management.Smo

Altre risorse

Gerarchia di crittografia

CREATE SYMMETRIC KEY (Transact-SQL)

OPEN SYMMETRIC KEY (Transact-SQL)