Share via


SymmetricKey.OpenWithCertificate Method (String)

Opens the symmetric key with a certificate.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub OpenWithCertificate ( _
    certificateName As String _
)
'Usage
Dim instance As SymmetricKey 
Dim certificateName As String

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

Parameters

Examples

Using Encryption

See Also

Reference

SymmetricKey Class

OpenWithCertificate Overload

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Encryption Hierarchy

CREATE SYMMETRIC KEY (Transact-SQL)

OPEN SYMMETRIC KEY (Transact-SQL)