共用方式為


Database.DatabaseEncryptionKey 屬性

Gets a DataBaseEncryptionKey data type.

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

語法

'宣告
<SfcObjectAttribute(SfcObjectRelationship.ChildObject, SfcObjectCardinality.One)> _
Public ReadOnly Property DatabaseEncryptionKey As DatabaseEncryptionKey 
    Get
'用途
Dim instance As Database 
Dim value As DatabaseEncryptionKey 

value = instance.DatabaseEncryptionKey
[SfcObjectAttribute(SfcObjectRelationship.ChildObject, SfcObjectCardinality.One)]
public DatabaseEncryptionKey DatabaseEncryptionKey { get; }
[SfcObjectAttribute(SfcObjectRelationship::ChildObject, SfcObjectCardinality::One)]
public:
property DatabaseEncryptionKey^ DatabaseEncryptionKey {
    DatabaseEncryptionKey^ get ();
}
[<SfcObjectAttribute(SfcObjectRelationship.ChildObject, SfcObjectCardinality.One)>]
member DatabaseEncryptionKey : DatabaseEncryptionKey
function get DatabaseEncryptionKey () : DatabaseEncryptionKey

屬性值

型別:Microsoft.SqlServer.Management.Smo.DatabaseEncryptionKey
A DatabaseEncryptionKey object.

請參閱

參考

Database 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

管理資料庫加密 (一般頁面)