Partilhar via


SymmetricKeyEncryption Constructor (KeyEncryptionType, String)

Initializes a new instance of the SymmetricKeyEncryption class with the specified encryption type and with the specified value.

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

Syntax

'Declaration
Public Sub New ( _
    encryptionType As KeyEncryptionType, _
    value As String _
)
public SymmetricKeyEncryption (
    KeyEncryptionType encryptionType,
    string value
)
public:
SymmetricKeyEncryption (
    KeyEncryptionType encryptionType, 
    String^ value
)
public SymmetricKeyEncryption (
    KeyEncryptionType encryptionType, 
    String value
)
public function SymmetricKeyEncryption (
    encryptionType : KeyEncryptionType, 
    value : String
)

Parameters

  • encryptionType
    An KeyEncryptionType object value that specifies the key encryption type.
  • value
    A String value that specifies the value of the key encryption.

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Example

How to: Construct an Object in Visual Basic .NET

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

SymmetricKeyEncryption Class
SymmetricKeyEncryption Members
Microsoft.SqlServer.Management.Smo Namespace