共用方式為


Database.EncryptionEnabled 屬性

Gets or sets a value that indicates whether the data encryption is enabled.

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

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public Property EncryptionEnabled As Boolean 
    Get 
    Set
'用途
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)

屬性值

型別:System.Boolean
true if the data encryption is enabled; otherwise, false. The default is false.

實作

IDatabaseOptions.EncryptionEnabled

請參閱

參考

Database 類別

Microsoft.SqlServer.Management.Smo 命名空間