Partager via


Propriété DatabaseEncryptionKey.EncryptionState

Gets or sets the encryption key state.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property EncryptionState As DatabaseEncryptionState 
    Get
'Utilisation
Dim instance As DatabaseEncryptionKey 
Dim value As DatabaseEncryptionState 

value = instance.EncryptionState
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public DatabaseEncryptionState EncryptionState { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property DatabaseEncryptionState EncryptionState {
    DatabaseEncryptionState get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member EncryptionState : DatabaseEncryptionState
function get EncryptionState () : DatabaseEncryptionState

Valeur de propriété

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

Notes

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

Voir aussi

Référence

DatabaseEncryptionKey Classe

Espace de noms Microsoft.SqlServer.Management.Smo

Autres ressources

Chiffrement transparent des données (TDE)

Gérer le chiffrement de la base de données (page Propriétés)