共用方式為


DatabaseEncryptionKey.EncryptionType 屬性

Specifies the encryption type used to encrypt the database encryption key.

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

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property EncryptionType As DatabaseEncryptionType 
    Get 
    Set
'用途
Dim instance As DatabaseEncryptionKey 
Dim value As DatabaseEncryptionType 

value = instance.EncryptionType

instance.EncryptionType = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public DatabaseEncryptionType EncryptionType { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property DatabaseEncryptionType EncryptionType {
    DatabaseEncryptionType get ();
    void set (DatabaseEncryptionType value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member EncryptionType : DatabaseEncryptionType with get, set
function get EncryptionType () : DatabaseEncryptionType 
function set EncryptionType (value : DatabaseEncryptionType)

屬性值

型別:Microsoft.SqlServer.Management.Smo.DatabaseEncryptionType
The encryption type used to encrypt the database encryption key.

備註

The following table lists the underlying values and constants for the encryption type:

Underlying Value

Constant

0

ServerCertificate

1

ServerAsymmetricKey

請參閱

參考

DatabaseEncryptionKey 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

透明資料加密 (TDE)

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