EncryptionState 属性
Gets or sets the encryption key state.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
<SfcPropertyAttribute> _
Public ReadOnly Property EncryptionState As DatabaseEncryptionState
Get
用法
Dim instance As DatabaseEncryptionKey
Dim value As DatabaseEncryptionState
value = instance.EncryptionState
[SfcPropertyAttribute]
public DatabaseEncryptionState EncryptionState { get; }
[SfcPropertyAttribute]
public:
property DatabaseEncryptionState EncryptionState {
DatabaseEncryptionState get ();
}
[<SfcPropertyAttribute>]
member EncryptionState : DatabaseEncryptionState
function get EncryptionState () : DatabaseEncryptionState
注释
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 |