AFErrors(TKey).AddPIServerError Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Add a PIServer specific error.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public void AddPIServerError( PIServer piServer, Exception ex )
Public Sub AddPIServerError ( piServer As PIServer, ex As Exception ) Dim instance As AFErrors Dim piServer As PIServer Dim ex As Exception instance.AddPIServerError(piServer, ex)
public: void AddPIServerError( PIServer^ piServer, Exception^ ex )
member AddPIServerError : piServer : PIServer * ex : Exception -> unit
Parameters
- piServer
- Type: OSIsoft.AF.PIPIServer
The PIServer associated with the error. - ex
- Type: SystemException
The error exception to be added.
Remarks
This method will add the error to the PIServerErrors dictionary
and set the HasErrors to .
| This method, property, or class is not available in the legacy .NET 3.5 version of the SDK. |