Certificate.ExpirationDate Property

Gets or sets the date and time at which the certificate expires.

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

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone)> _
Public Property ExpirationDate As DateTime 
    Get 
    Set
'Usage
Dim instance As Certificate 
Dim value As DateTime 

value = instance.ExpirationDate

instance.ExpirationDate = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)]
public DateTime ExpirationDate { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone)]
public:
property DateTime ExpirationDate {
    DateTime get ();
    void set (DateTime value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)>]
member ExpirationDate : DateTime with get, set
function get ExpirationDate () : DateTime 
function set ExpirationDate (value : DateTime)

Property Value

Type: System.DateTime
A DateTime object value that specifies the expiration date of the certificate.

Examples

Using Encryption

See Also

Reference

Certificate Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Encryption Hierarchy

CREATE CERTIFICATE (Transact-SQL)