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

AF SDK Reference

AFErrors(TKey).AddPIServerError Method

  • Last UpdatedJan 12, 2026
  • 2 minute read
AFErrors(TKey).AddPIServerError Method
Add a PIServer specific error.

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

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 .

Note Notes to Callers
This method, property, or class is not available in the legacy .NET 3.5 version of the SDK.

Version Information

AFSDK


See Also

In This Topic