共用方式為


ExpirationDate 屬性

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

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

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)> _
Public Property ExpirationDate As DateTime
    Get
    Set
'用途
Dim instance As Certificate
Dim value As DateTime

value = instance.ExpirationDate

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

屬性值

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

範例

使用加密