Share via


DatabaseEncryptionKey.SetDate Property

Gets the last date and time when the database encryption key was set.

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

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property SetDate As DateTime 
    Get
'Usage
Dim instance As DatabaseEncryptionKey 
Dim value As DateTime 

value = instance.SetDate
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public DateTime SetDate { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property DateTime SetDate {
    DateTime get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member SetDate : DateTime
function get SetDate () : DateTime

Property Value

Type: System.DateTime
The last date and time when the database encryption key was set.

See Also

Reference

DatabaseEncryptionKey Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Transparent Data Encryption (TDE)

Manage Database Encryption (Properties Page)