Initializes a new instance of the MessageFormatException class with serialized data.
Throws System.ArgumentNullException if the info parameter is null.
Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
Namespace:
Apache.NMSAssembly: Apache.NMS (in Apache.NMS.dll)
Syntax
| Visual Basic |
|---|
Protected Sub New ( _ info As SerializationInfo, _ context As StreamingContext _ ) |
| C# |
|---|
protected MessageFormatException( SerializationInfo info, StreamingContext context ) |
| Visual C++ |
|---|
protected: MessageFormatException( SerializationInfo^ info, StreamingContext context ) |
| JavaScript |
|---|
Apache.NMS.MessageFormatException = function(info, context); |
Parameters
- info
- Type: System.Runtime.Serialization..::..SerializationInfo
The SerializationInfo that holds the serialized object data about the exception being thrown.
- context
- Type: System.Runtime.Serialization..::..StreamingContext
The StreamingContext that contains contextual information about the source or destination.