共用方式為


DatabaseEncryptionKey.EncryptionState 屬性

Gets or sets the encryption key state.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property EncryptionState As DatabaseEncryptionState 
    Get
'用途
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

屬性值

型別: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

請參閱

參考

DatabaseEncryptionKey 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

透明資料加密 (TDE)

管理資料庫加密 (屬性頁面)