Database.EncryptionEnabled Property

Gets or sets the ENCRYPTIONENABLED property of a database.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public Property EncryptionEnabled As Boolean
    Get
    Set
'Usage
Dim instance As Database
Dim value As Boolean

value = instance.EncryptionEnabled

instance.EncryptionEnabled = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)]
public bool EncryptionEnabled { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase)]
public:
virtual property bool EncryptionEnabled {
    bool get () sealed;
    void set (bool value) sealed;
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
abstract EncryptionEnabled : bool with get, set
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
override EncryptionEnabled : bool with get, set
final function get EncryptionEnabled () : boolean
final function set EncryptionEnabled (value : boolean)

Property Value

Type: System.Boolean
An EncryptionEnabled value that specifies whether the date correlation optimization is active. If False (default), data encryption is not active

Implements

IDatabaseOptions.EncryptionEnabled