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

AF SDK Reference

Product Family
Current publication
Table of Contents

PISerializationException Constructor

PISerializationException Constructor

Note: This API is now obsolete.

Initializes a new instance of the PISerializationException 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.0.1156

Syntax

[BrowsableAttribute(false)]
[ObsoleteAttribute("PISerializationException is not relevant.")]
public PISerializationException(
	PIServer piServer,
	string message,
	int statusCode,
	Exception innerException = null
)
<BrowsableAttribute(false)>
<ObsoleteAttribute("PISerializationException is not relevant.")>
Public Sub New ( 
	piServer As PIServer,
	message As String,
	statusCode As Integer,
	Optional innerException As Exception = Nothing
)

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

Dim instance As New PISerializationException(piServer, 
	message, statusCode, innerException)
public:
[BrowsableAttribute(false)]
[ObsoleteAttribute(L"PISerializationException is not relevant.")]
PISerializationException(
	PIServer^ piServer, 
	String^ message, 
	int statusCode, 
	Exception^ innerException = nullptr
)
[<BrowsableAttribute(false)>]
[<ObsoleteAttribute("PISerializationException is not relevant.")>]
new : 
        piServer : PIServer * 
        message : string * 
        statusCode : int * 
        ?innerException : Exception 
(* Defaults:
        let _innerException = defaultArg innerException null
*)
-> PISerializationException

Parameters

piServer
Type: OSIsoft.AF.PI.PIServer
The PIServer associated with the exception.
message
Type: System.String
The error message that explains the reason for the exception.
statusCode
Type: System.Int32
The status code indicating the cause of the current exception that was returned from the PIServer.
innerException (Optional)
Type: System.Exception
The exception that is the cause of the current exception, or null if no inner exception is specified.

Remarks

This exception can be thrown when there is a serialization problem with an object in the PIServer. 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: 2.7.5, 2.7, 2.6, 2.5
Obsolete (compiler warning) in 3.1.0
Obsolete (compiler warning) in 3.0.2
Obsolete (compiler warning) in 3.0.1
Obsolete (compiler warning) in 3.0.0
Obsolete (compiler warning) in 2.10.11
Obsolete (compiler warning) in 2.10.5
Obsolete (compiler warning) in 2.10.0
Obsolete (compiler warning) in 2.10
Obsolete (compiler warning) in 2.9.5
Obsolete (compiler warning) in 2.9
Obsolete (compiler warning) in 2.8.5
Obsolete (compiler warning) in 2.8

See Also

Was this topic helpful?