PIConnectFailedEventArgs Constructor
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Initializes a new instance of the PIConnectFailedEventArgs class.
Namespace: OSIsoft.AF.PI
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public PIConnectFailedEventArgs( PIServer piServer, PIConnectionException ex, bool allowAutoPrompt )
Public Sub New ( piServer As PIServer, ex As PIConnectionException, allowAutoPrompt As Boolean ) Dim piServer As PIServer Dim ex As PIConnectionException Dim allowAutoPrompt As Boolean Dim instance As New PIConnectFailedEventArgs(piServer, ex, allowAutoPrompt)
public: PIConnectFailedEventArgs( PIServer^ piServer, PIConnectionException^ ex, bool allowAutoPrompt )
new : piServer : PIServer * ex : PIConnectionException * allowAutoPrompt : bool -> PIConnectFailedEventArgs
Parameters
- piServer
- Type: OSIsoft.AF.PIPIServer
The PIServer that failed to connect. - ex
- Type: OSIsoft.AF.PIPIConnectionException
The PIConnectionException for the failed connection attempt. - allowAutoPrompt
- Type: SystemBoolean
The value for the AllowAutoPrompt property which indicates whether an auto prompt should be attempted.
Remarks
This constructor is to be used for creating the EventArgs
for the ConnectFailed event.