Click or drag to resize
Grid Solutions Framework

PIConnection Class

Represents a connection to a PI server that handles open, close and executes operations.
Inheritance Hierarchy
SystemObject
  PIAdaptersPIConnection

Namespace: PIAdapters
Assembly: PIAdapters (in PIAdapters.dll) Version: 2.4.218-beta
Syntax
public class PIConnection : IComparable<PIConnection>, 
	IComparable, IDisposable
View Source

The PIConnection type exposes the following members.

Constructors
 NameDescription
Public methodPIConnection Creates a new OSI-PI connection.
Top
Properties
 NameDescription
Public propertyConnected Gets flag that determines if PIConnection is currently connected to ServerName.
Public propertyConnectTimeout Gets or sets the timeout interval (in milliseconds) for the adapter's connection.
Public propertyPassword Gets or sets the password used for the adapter's PI connection.
Public propertyServer Gets PI server object for this PI connection.
Public propertyServerName Gets or sets the name of the PI server for the adapter's PI connection.
Public propertyUserName Gets or sets the name of the PI user ID for the adapter's PI connection.
Top
Methods
 NameDescription
Public methodClose Closes PIConnection.
Public methodCompareTo Compares the current object with another object of the same type.
Public methodDispose Releases all the resources used by the PIConnection object.
Protected methodDispose(Boolean) Releases the unmanaged resources used by the PIConnection object and optionally releases the managed resources.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodOpen Attempts to open PIConnection.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventDisconnected Raised when PIConnection has been disconnected from server.
Top
Fields
 NameDescription
Public fieldStatic memberDefaultConnectTimeout Default value for ConnectTimeout.
Top
See Also