AFConnectionInfo.Expiration Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- 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.1.1.1182
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.