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

AF SDK Reference

PIVersionNotSupportedException Constructor

  • Last UpdatedNov 18, 2025
  • 2 minute read
PIVersionNotSupportedException Constructor
Initializes a new instance of the PIVersionNotSupportedException class with a specified error message and a reference to the inner exception that is the cause of this exception.

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

Syntax

public PIVersionNotSupportedException(
	PIServer piServer,
	string message,
	int statusCode,
	Version minSupportedVersion,
	Exception innerException = null
)
Public Sub New ( 
	piServer As PIServer,
	message As String,
	statusCode As Integer,
	minSupportedVersion As Version,
	Optional innerException As Exception = Nothing
)

Dim piServer As PIServer
Dim message As String
Dim statusCode As Integer
Dim minSupportedVersion As Version
Dim innerException As Exception

Dim instance As New PIVersionNotSupportedException(piServer, 
	message, statusCode, minSupportedVersion, 
	innerException)
public:
PIVersionNotSupportedException(
	PIServer^ piServer, 
	String^ message, 
	int statusCode, 
	Version^ minSupportedVersion, 
	Exception^ innerException = nullptr
)
new : 
        piServer : PIServer * 
        message : string * 
        statusCode : int * 
        minSupportedVersion : Version * 
        ?innerException : Exception 
(* Defaults:
        let _innerException = defaultArg innerException null
*)
-> PIVersionNotSupportedException

Parameters

piServer
Type: OSIsoft.AF.PIPIServer
The PIServer associated with the exception.
message
Type: SystemString
The error message that explains the reason for the exception.
statusCode
Type: SystemInt32
The status code indicating the cause of the current exception that was returned from the PIServer.
minSupportedVersion
Type: SystemVersion
The minimum supported version for the requested operation.
innerException (Optional)
Type: SystemException
The exception that is the cause of the current exception, or if no inner exception is specified.

Remarks

This exception can be thrown when the version of the PIServer does not support a requested operation. An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6

See Also

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