AFSession Structure
- Last UpdatedNov 18, 2025
- 3 minute read
- PI System
- AF SDK 2024 R2
- Developer
This structure is used to represent a session on the PI AF Application Server.
Namespace: OSIsoft.AF.Diagnostics
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public struct AFSession
Public Structure AFSession Dim instance As AFSession
public value class AFSession
[<SealedAttribute>] type AFSession = struct end
The AFSession type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
| AuthenticationType |
The authentication type of the account which made the connection.
| |
| ClientHost |
The IP address of the client host which made the connection.
| |
| ClientPort |
The port number of the client host which made the connection.
| |
| EndTime |
The end time of the connection.
| |
| GracefulTermination |
A boolean that indicates if the end time was logged for graceful client termination.
| |
| StartTime |
The start time of the connection.
| |
| UserName |
The user name of the account which made the connection.
|
Methods
| Name | Description | |
|---|---|---|
| Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) | |
| GetHashCode | Returns the hash code for this instance. (Inherited from ValueType.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| ToString |
Returns a String that represents the current object.
(Overrides ValueTypeToString.) |
Remarks
The structure is returned by the GetSessions Overload method.