PIConnectionException.StatusCode Property
- Last UpdatedNov 18, 2025
- 1 minute read
- PI System
- AF SDK 2024 R2
- Developer
The status code indicating the cause of the current exception that was returned
from the PIServer.
Namespace: OSIsoft.AF.PI
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public int StatusCode { get; }
Public ReadOnly Property StatusCode As Integer Get Dim instance As PIConnectionException Dim value As Integer value = instance.StatusCode
public: property int StatusCode { int get (); }
member StatusCode : int with get
Property Value
Type: Int32Returns the status code indicating the cause of the current exception that was returned from the PIServer.