AFConnectionInfo.Expiration Property
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Read-only property that returns the Token Expiration used by OpenID connections
to the AF server.
For windows connections, this will return DateTime.MinValue.
For openId connections, this will return the access token expiration.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public DateTime Expiration { get; }
Public ReadOnly Property Expiration As DateTime Get Dim instance As AFConnectionInfo Dim value As DateTime value = instance.Expiration
public: property DateTime Expiration { DateTime get (); }
member Expiration : DateTime with get
Property Value
Type: DateTimeReturns a DateTime value indicating the Expiration time of the access token used by the connection or DateTime.MinValue if connected as windows.