Create Method (SymmetricKeyEncryption, SymmetricKeyEncryptionAlgorithm, SecureString)

SymmetricKey.Create Method (SymmetricKeyEncryption, SymmetricKeyEncryptionAlgorithm, SecureString)

 

Creates a symmetric key on the database with the specified encryption type and method.

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

public void Create(
	SymmetricKeyEncryption keyEncryption,
	SymmetricKeyEncryptionAlgorithm keyEncryptionAlgorithm,
	SecureString passPhrase
)

Parameters

keyEncryption
Type: Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryption

A SymmetricKeyEncryption object value that specifies the encryption type.

keyEncryptionAlgorithm
Type: Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryptionAlgorithm

A SymmetricKeyEncryptionAlgorithm value that specifies the encryption method.

passPhrase
Type: System.Security.SecureString

A SecureString value that specifies the pass phrase from which the symmetric key can be derived.

Return to top
Show:
© 2016 Microsoft