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

AF SDK Reference

PIServers Methods

  • Last UpdatedNov 18, 2025
  • 6 minute read
PIServers Methods

The PIServers type exposes the following members.

Methods

  NameDescription
Public method
Add
Registers a new PIServer to the list of known servers on the local machine.
Public method
Clear
Unregisters all existing PIServer entries from the list of known PI Data Archive servers on the local machine.
Public method
Contains(Guid)
This method determines whether the collection contains a specific item referenced by id.
Public method
Contains(String)
This method determines whether the collection contains a specific item referenced by name.
Public method
Contains(PIServer)
This method determines whether the collection contains a specific item.
Public method
CopyTo
Copies the entire collection to a compatible one-dimensional Array, starting at the specified index of the target array.
Public method
DisconnectAll
Disconnects all PIServers that are currently connected.
Public method
Equals
Determines whether the specified Object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public method
GetBufferStatus
This method gets the PIBufferStatus of the PI Buffer Subsystem.
Public method
GetEnumerator
Returns an enumerator that iterates through the collection.
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 methodStatic member
GetPIServers(PISystem)
Get the list of known PIServers on the local machine.
Public methodStatic member
GetPIServers(ClaimsIdentity, Boolean)
Get the list of known PIServers on the local machine.
Public methodStatic member
GetPIServers(String, String, Boolean)
Get the list of known PIServers on the local machine.
Public method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method
IndexOf
Searches for the specified object and returns the zero-based index of the first occurrence within the entire collection.
Public method
Refresh
Refresh the list of known PI Data Archive servers on the local machine, where the cached collections of connected servers will be refreshed.
Public method
Refresh(Boolean)
Refresh the list of known PI Data Archive servers on the local machine with the option to refresh cached collections for connected servers.
Public method
Remove(Guid)
Unregisters an existing PIServer with the specified unique identifier.
Public method
Remove(String)
Unregisters an existing PIServer with the specified name.
Public method
Remove(PIServer)
Unregisters the specified PIServer.
Public method
RemoveAt
Unregisters an existing PIServer by removing the entry from the list of known PI Data Archive servers on the local machine.
Public method
Sort
Sorts the items in the entire collection using the default comparer.
Public method
Sort(IComparerPIServer)
Sorts the items in the entire collection using the specified comparer.
Public method
Sort(Int32, Int32, IComparerPIServer)
Sorts the items in a range of items in the collection using the specified comparer.
Public method
ToString
Returns a String that represents the current object.
(Overrides ObjectToString.)

Extension Methods

  NameDescription
Public Extension Method
AggregatePIServer
Performs all requested aggregates on the specified items.
(Defined by AFAggregate.)
Public Extension Method
AggregateAsyncPIServer
Performs all requested aggregates on the specified items asynchronously.
(Defined by AFAggregate.)
Public Extension Method
BinnedSummaryPIServer, TBin
Generates a summary broken down by the specified bins for items matching the search criteria.
(Defined by AFAggregate.)
Public Extension Method
BinnedSummaryAsyncPIServer, TBin
Generates a summary broken down by the specified bins for items matching the search criteria asynchronously.
(Defined by AFAggregate.)
Public Extension MethodCode example
ChunkedByPIServer
This extension method breaks up search results into chunks to make it easier to page through and process IEnumerableT collections in chunks.
(Defined by AFSDKExtension.)
Public Extension Method
FrequencyDistributionPIServer
Generates a frequency distribution for the specified items.
(Defined by AFAggregate.)
Public Extension Method
FrequencyDistributionAsyncPIServer
Generates a frequency distribution for the specified items asynchronously.
(Defined by AFAggregate.)
Public Extension Method
GroupedSummaryPIServer
Generates a summary broken down by group for the specified items.
(Defined by AFAggregate.)
Public Extension Method
GroupedSummaryAsyncPIServer
Generates a histogram for the specified items asynchronously.
(Defined by AFAggregate.)
Public Extension Method
HistogramPIServer, TBin
Generates a histogram for the specified items with the specified weighting.
(Defined by AFAggregate.)
Public Extension Method
HistogramAsyncPIServer, TBin
Generates a histogram for the specified items with the specified weighting asynchronously.
(Defined by AFAggregate.)
Public Extension Method
SummaryPIServer(String, AFSummaryTypes)Overloaded.
Summarizes the specified items.
(Defined by AFAggregate.)
Public Extension Method
SummaryPIServer(String, AFSummaryTypes, String)Overloaded.
Summarizes the specified items with the specified weighting.
(Defined by AFAggregate.)
Public Extension Method
SummaryAsyncPIServer(String, AFSummaryTypes, CancellationToken)Overloaded.
Summarizes the specified items asynchronously.
(Defined by AFAggregate.)
Public Extension Method
SummaryAsyncPIServer(String, AFSummaryTypes, String, CancellationToken)Overloaded.
Summarizes the specified items with the specified weighting asynchronously.
(Defined by AFAggregate.)

See Also

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