PIServer Methods
- Last UpdatedNov 18, 2025
- 11 minute read
- PI System
- AF SDK 2024 R2
- Developer
The PIServer type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| CompareTo(Object) |
Compares this instance with a specified Object.
(Inherited from AFObject.) | |
| CompareTo(AFObject) |
Compares this instance with a specified AFObject.
(Inherited from AFObject.) | |
| Connect(Boolean) |
Open a connection to the PI Data Archive using default credentials
to allow sending and retrieving data.
| |
| Connect(NetworkCredential) |
Open a connection to the PI Data Archive using the specified PI User credentials
to allow sending and retrieving data.
| |
| Connect(String) |
Connects to the server using the specified Access Token to allow sending and retrieving data.
| |
| Connect(AFConnectionPreference) |
Open a connection to the PI Data Archive using the specified connection preference
to allow sending and retrieving data.
| |
| Connect(Boolean, IWin32Window) |
Open a connection to the PI Data Archive with a credential prompt if necessary
to allow sending and retrieving data.
| |
| Connect(NetworkCredential, AFConnectionPreference) |
Open a connection to the PI Data Archive using the specified PI User credentials
and connection preference to allow sending and retrieving data.
| |
| Connect(NetworkCredential, PIAuthenticationMode) |
Open a connection to the PI Data Archive using the specified credentials
to allow sending and retrieving data.
| |
| Connect(String, AFConnectionPreference) |
Connects to the server using the specified Access Token to allow sending and retrieving data.
| |
| Connect(String, String) |
Connects to the server using the specified credentials to allow sending and retrieving data.
| |
| Connect(Boolean, IWin32Window, AFConnectionPreference) |
Open a connection to the PI Data Archive using the specified connection preference
with a credential prompt if necessary to allow sending and retrieving data.
| |
| Connect(NetworkCredential, AFConnectionPreference, PIAuthenticationMode) |
Open a connection to the PI Data Archive using the specified credentials
and connection preference to allow sending and retrieving data.
| |
| Connect(String, String, AFConnectionPreference) |
Connects to the server using the specified credentials to allow sending and retrieving data.
| |
| Connect(Boolean, IWin32Window, AFConnectionPreference, Boolean) |
Open a connection to the PI Data Archive using the specified connection preference
with a credential prompt if necessary to allow sending and retrieving data
and return an indication that dialog was canceled.
| |
| ConnectWithPrompt |
Connects to the server prompting for credentials.
| |
| ConnectWithPrompt(IWin32Window) |
Open a connection to the PI Data Archive prompting for credentials
to allow sending and retrieving data.
| |
| ConnectWithPrompt(AFConnectionPreference) |
Open a connection to the PI Data Archive prompting for credentials
to allow sending and retrieving data.
| |
| ConnectWithPrompt(IWin32Window, PIAuthenticationMode, NullableAFConnectionPreference) |
Open a connection to the PI Data Archive prompting for credentials
to allow sending and retrieving data.
| |
| CreatePIPoint | ||
| CreatePIPoints(IDictionaryString, IDictionaryString, Object) | ||
| CreatePIPoints(IEnumerableString, IDictionaryString, Object) | ||
| DeletePIPoint | ||
| DeletePIPoints | ||
| Disconnect |
Close a connection to the PI Data Archive.
| |
| Equals(Object) |
Determines whether the specified Object is equal to the current object.
(Overrides AFObjectEquals(Object).) | |
| Equals(AFObject) |
Indicates whether the current object is equal to another object of the same type.
(Inherited from AFObject.) | |
| Equals(PIServer) |
Indicates whether the current object is equal to another object of the same type.
| |
| ExportCsv(Object, IListObject, IListString, CultureInfo) |
Exports the CSV representation of requested object(s) and returns it as a string.
The supported objects include PI Points, PI DigitalStateSets, PI Identities, or PI IdentityMappings.
| |
| ExportCsv(Object, IListObject, IListString, PIExportMode, CultureInfo) |
Exports the CSV representation of requested object(s) and returns it as a string.
The supported objects include PI Points, PI DigitalStateSets, PI Identities, or PI IdentityMappings.
| |
| ExportCsv(Object, IListObject, IListString, CultureInfo, String, EventHandlerAFProgressEventArgs) |
Exports the representation of requested object(s) in comma-separated (CSV) format to a file.
The supported objects include PI Points, PI DigitalStateSets, PI Identities, or PI IdentityMappings.
| |
| ExportCsv(Object, IListObject, IListString, PIExportMode, CultureInfo, String, EventHandlerAFProgressEventArgs) |
Exports the representation of requested object(s) in comma-separated (CSV) format to a file.
The supported objects include PI Points, PI DigitalStateSets, PI Identities, or PI IdentityMappings.
| |
| FindChangedPIPoints |
Find all the PI Points that have changed in the PIServer.
| |
| FindPIServer(Guid) |
Find the PIServer from the specified unique identifier.
| |
| FindPIServer(String) |
Find the PIServer from the specified name.
| |
| FindPIServer(PISystem, Guid) | ||
| FindPIServer(PISystem, String) | ||
| GetAnnotations |
Gets the annotations associated with list of historical events.
| |
| GetBufferStatus |
This method gets the PIBufferStatus for the corresponding PIServer.
| |
| GetClientRpcMetrics |
Get the remote procedure call metrics to the server for this PIServer.
| |
| GetCsvColumns(Type, Boolean) |
Retrieve a collection containing the required and optional CSV columns for the specified
object type and its children.
The supported objects include PI Points, PI DigitalStateSets, PI Identities, or PI IdentityMappings.
| |
| GetCsvColumns(Type, IListObject, Boolean) |
Retrieve a collection containing the required and optional CSV columns for the specified
object type and its children.
The supported objects include PI Points, PI DigitalStateSets, PI Identities, or PI IdentityMappings.
| |
| 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 AFObjectGetHashCode.) | |
| GetIdentityServerBestRsso |
Method to retrieve the Best Redundant Single Sign-On Server Endpoint for the Identity Server for the .
| |
| GetPath |
Returns the full path to the object, using just the names.
(Inherited from AFObject.) | |
| GetPath(AFObject) |
Returns the path to the object relative from another object.
(Inherited from AFObject.) | |
| GetPath(AFEncodeType, AFObject) |
Returns the path to the object relative from another object,
using the name and/or id as specified
by encodeType.
(Inherited from AFObject.) | |
| GetPointAttributeNames | ||
| GetPointCount |
This method gets the total point count for the corresponding PIServer.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| ImportCsv(PIImportMode, CultureInfo, Stream, EventHandlerAFProgressEventArgs) |
Imports the comma-separated value (CSV) representation of PI Points, PI DigitalStateSets, PI Identities, or PI IdentityMappings
from a stream.
| |
| ImportCsv(PIImportMode, CultureInfo, String, EventHandlerAFProgressEventArgs) |
Imports the comma-separated value (CSV) representation of PI Points, PI DigitalStateSets, PI Identities, or PI IdentityMappings
from a file.
| |
| LogOut |
Logs out the current OIDC user and closes all associated connections to the PI Data Archive.
| |
| Persist |
This method returns the persistence string for the object.
(Overrides AFObjectPersist.) | |
| Refresh |
Refresh the cached information for the PIServer.
| |
| RefreshOIDCToken |
Refreshes OIDC token on the PI Data Archive.
New access token to refresh the connection; if null, will try refresh token if available.
This exception will be generated if newAccessToken and refresh token are both unavailable.
| |
| ReplaceValues(AFTimeRange, IListAFValues) |
This method removes existing data within the specified AFTimeRange and
inserts the specified values.
| |
| ReplaceValues(AFTimeRange, IListAFValues, AFBufferOption) |
This method removes existing data within the specified AFTimeRange and
inserts the specified values.
| |
| Supports |
Checks if the specified PIServerFeature feature is supported by
the PIServer.
| |
| ToString |
Returns a String that represents the current object.
(Inherited from AFObject.) | |
| TryConvertToServerID |
Convert a string key to a PIServer ID.
| |
| UpdateValues(IListAFValue, AFUpdateOption) | ||
| UpdateValues(IListAFValue, AFUpdateOption, AFBufferOption) | ||
| UpdateValuesAsync(IListAFValue, AFUpdateOption, CancellationToken) | ||
| UpdateValuesAsync(IListAFValue, AFUpdateOption, AFBufferOption, CancellationToken) |
See Also
In This Topic
Related Links
- Connect Method
- ConnectWithPrompt Method
- CreatePIPoint Method
- CreatePIPoints Method
- DeletePIPoint Method
- DeletePIPoints Method
- Disconnect Method
- Equals Method
- ExportCsv Method
- FindChangedPIPoints Method
- FindPIServer Method
- GetAnnotations Method
- GetBufferStatus Method
- GetClientRpcMetrics Method
- GetCsvColumns Method
- GetHashCode Method
- GetIdentityServerBestRsso Method
- GetPointAttributeNames Method
- GetPointCount Method
- ImportCsv Method
- LogOut Method
- Persist Method
- Refresh Method
- RefreshOIDCToken Method
- ReplaceValues Method
- Supports Method
- TryConvertToServerID Method
- UpdateValues Method
- UpdateValuesAsync Method