SerializerException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SerializerException() |
Initializes a new instance of the SerializerException class. |
SerializerException(String) |
Initializes a new instance of the SerializerException class. |
SerializerException(SerializationInfo, StreamingContext) |
Obsolete.
Initializes a new instance of the SerializerException class. |
SerializerException(String, Exception) |
Initializes a new instance of the SerializerException class. |
SerializerException()
Initializes a new instance of the SerializerException class.
public SerializerException ();
Public Sub New ()
Applies to
SerializerException(String)
Initializes a new instance of the SerializerException class.
public SerializerException (string message);
new Orleans.Serialization.SerializerException : string -> Orleans.Serialization.SerializerException
Public Sub New (message As String)
Parameters
- message
- String
The message that describes the error.
Applies to
SerializerException(SerializationInfo, StreamingContext)
Caution
This API is now deprecated.
Initializes a new instance of the SerializerException class.
protected SerializerException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete]
protected SerializerException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Orleans.Serialization.SerializerException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Orleans.Serialization.SerializerException
[<System.Obsolete>]
new Orleans.Serialization.SerializerException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Orleans.Serialization.SerializerException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
The SerializationInfo that holds the serialized object data about the exception being thrown.
- context
- StreamingContext
The StreamingContext that contains contextual information about the source or destination.
- Attributes
Applies to
SerializerException(String, Exception)
Initializes a new instance of the SerializerException class.
public SerializerException (string message, Exception innerException);
new Orleans.Serialization.SerializerException : string * Exception -> Orleans.Serialization.SerializerException
Public Sub New (message As String, innerException As Exception)
Parameters
- message
- String
The error message that explains the reason for the exception.
- innerException
- Exception
The exception that is the cause of the current exception, or a null reference (Nothing
in Visual Basic) if no inner exception is specified.