Share via


SymmetricKey.OpenWithSymmetricKey Method

Opens the symmetric key with another symmetric key.

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

Syntax

'Declaration
Public Sub OpenWithSymmetricKey ( _
    symmetricKeyName As String _
)
'Usage
Dim instance As SymmetricKey 
Dim symmetricKeyName As String

instance.OpenWithSymmetricKey(symmetricKeyName)
public void OpenWithSymmetricKey(
    string symmetricKeyName
)
public:
void OpenWithSymmetricKey(
    String^ symmetricKeyName
)
member OpenWithSymmetricKey : 
        symmetricKeyName:string -> unit
public function OpenWithSymmetricKey(
    symmetricKeyName : String
)

Parameters

Examples

Using Encryption

See Also

Reference

SymmetricKey Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Encryption Hierarchy

CREATE SYMMETRIC KEY (Transact-SQL)

OPEN SYMMETRIC KEY (Transact-SQL)