Share via


Database.DatabaseEncryptionKey Property

Gets a DataBaseEncryptionKey datatype.

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

Syntax

'Declaration
<SfcObjectAttribute(SfcObjectRelationship.ChildObject, SfcObjectCardinality.One)> _
Public ReadOnly Property DatabaseEncryptionKey As DatabaseEncryptionKey
    Get
'Usage
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

Property Value

Type: Microsoft.SqlServer.Management.Smo.DatabaseEncryptionKey
A DatabaseEncryptionKey object.