Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

PIConnectFailedEventArgs Class

  • Last UpdatedNov 18, 2025
  • 4 minute read
PIConnectFailedEventArgs Class
Provides data for the ConnectFailed event.

Inheritance Hierarchy

SystemObject
  SystemEventArgs
    OSIsoft.AFAFEventArgs
      OSIsoft.AF.PIPIConnectFailedEventArgs

Namespace:  OSIsoft.AF.PI
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public sealed class PIConnectFailedEventArgs : AFEventArgs, 
	IEquatable<PIConnectFailedEventArgs>
Public NotInheritable Class PIConnectFailedEventArgs
	Inherits AFEventArgs
	Implements IEquatable(Of PIConnectFailedEventArgs)

Dim instance As PIConnectFailedEventArgs
public ref class PIConnectFailedEventArgs sealed : public AFEventArgs, 
	IEquatable<PIConnectFailedEventArgs^>
[<SealedAttribute>]
type PIConnectFailedEventArgs =  
    class
        inherit AFEventArgs
        interface IEquatable<PIConnectFailedEventArgs>
    end

The PIConnectFailedEventArgs type exposes the following members.

Constructors

  NameDescription
Public method
PIConnectFailedEventArgs
Initializes a new instance of the PIConnectFailedEventArgs class.

Properties

  NameDescription
Public property
AllowAutoPrompt
This property is when a connection to a PIServer fails when a login prompt would normally have been displayed.
Public property
Exception
The PIConnectionException associated with the failed connection to the PIServer.
Public property
ID
The ID of the PIServer that failed to connect.
(Overrides AFEventArgsID.)
Public property
PIServer
The PIServer associated with this event.

Methods

  NameDescription
Public method
Equals(Object)
Determines whether the specified Object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public method
Equals(PIConnectFailedEventArgs)
Indicates whether the current object is equal to another object of the same type.
Public method
GetHashCode
Gets the hash code for this instance of the object which is suitable for use in hashing algorithms and data structures like a hash table.
(Overrides ObjectGetHashCode.)
Public method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method
ToString
Returns a String that represents the current object.
(Overrides ObjectToString.)

Operators

  NameDescription
Public operatorStatic member
Equality
The equality operator (==) compares its operands to determine if they are equal.
Public operatorStatic member
Inequality
The inequality operator (!=) compares its operands to determine if they are not equal.

Remarks

A ConnectFailed event is raised when a connection to a PIServer fails when a login prompt would normally have been displayed.

Version Information

AFSDK


See Also

TitleResults for “How to create a CRG?”Also Available in