Partager via


Propriété DatabaseEncryptionKey.EncryptionType

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

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

Syntaxe

'Déclaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property EncryptionType As DatabaseEncryptionType 
    Get 
    Set
'Utilisation
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)

Valeur de propriété

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

Notes

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

Underlying Value

Constant

0

ServerCertificate

1

ServerAsymmetricKey

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)