Share via


X509Certificate.IsCurrent Property

Gets a value indicating whether the certificate is current, that is, has not expired.

Namespace: Microsoft.Web.Services2.Security.X509
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)

Usage

'Usage
Dim x509Certificate1 As X509Certificate

Dim returnValue As Boolean
returnValue = x509Certificate1.IsCurrent

Syntax

'Declaration
Public ReadOnly Property IsCurrent() As Boolean
public bool IsCurrent {get;}
public: property Boolean IsCurrent{
    Boolean get();
}
public boolean get_IsCurrent();
public function get IsCurrent() : Boolean;

Property Value

true if the certificate is current; otherwise, false.

Remarks

A certificate is valid only for the period of time specified within it; every certificate contains Valid From and Valid To dates, which set the boundaries of the validity period. Once a certificate's validity period has passed, a new certificate must be requested by the subject of the expired certificate.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone

See Also

Reference

X509Certificate Class
Microsoft.Web.Services2.Security.X509 Namespace

Other Resources

X509Certificate Members