Export (0) Print
Expand All

DatabaseEncryptionKey.EncryptionState Property

Gets or sets the encryption key state.

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

[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public DatabaseEncryptionState EncryptionState { get; }

Property Value

Type: Microsoft.SqlServer.Management.Smo.DatabaseEncryptionState
The encryption key state.

Valid constants and underlying values are listed in the following table:

Underlying Value

Constant

0

None

1

Unencrypted

2

EncryptioninProgress

3

Encrypted

4

EncryptionKeyChangesInProgress

5

DecryptionInProgress

Community Additions

ADD
Show:
© 2014 Microsoft