ReaderException 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.
Initializes a new instance of the ReaderException class.
Overloads
ReaderException() |
Initializes a new instance of the ReaderException class. |
ReaderException(Exception) |
Initializes a new instance of the ReaderException class using a reference to the inner exception that is the cause of this exception. |
ReaderException(String) |
Initializes a new instance of the ReaderException class using the specified error message. |
ReaderException(SerializationInfo, StreamingContext) |
Initializes a new instance of the ReaderException class using serialized data. |
ReaderException(String, Exception) |
Initializes a new instance of the ReaderException class using the specified message and a reference to the inner exception that is the cause of this exception. |
ReaderException()
Initializes a new instance of the ReaderException class.
public:
ReaderException();
public ReaderException ();
Public Sub New ()
Applies to
ReaderException(Exception)
Initializes a new instance of the ReaderException class using a reference to the inner exception that is the cause of this exception.
public:
ReaderException(Exception ^ inner);
public ReaderException (Exception inner);
new Microsoft.EnterpriseManagement.Common.ReaderException : Exception -> Microsoft.EnterpriseManagement.Common.ReaderException
Public Sub New (inner As Exception)
Parameters
- inner
- Exception
The exception that is the cause of the current exception.
Applies to
ReaderException(String)
Initializes a new instance of the ReaderException class using the specified error message.
public:
ReaderException(System::String ^ message);
public ReaderException (string message);
new Microsoft.EnterpriseManagement.Common.ReaderException : string -> Microsoft.EnterpriseManagement.Common.ReaderException
Public Sub New (message As String)
Parameters
- message
- String
The error message that describes the current exception.
Applies to
ReaderException(SerializationInfo, StreamingContext)
Initializes a new instance of the ReaderException class using serialized data.
protected:
ReaderException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ReaderException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.EnterpriseManagement.Common.ReaderException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.EnterpriseManagement.Common.ReaderException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
The object that holds the serialized data about the exception being thrown.
- context
- StreamingContext
Context information about the source or destination of the serialized object.
Remarks
This constructor is called during deserialization to reconstitute the exception object that is transmitted over a stream.
Applies to
ReaderException(String, Exception)
Initializes a new instance of the ReaderException class using the specified message and a reference to the inner exception that is the cause of this exception.
public:
ReaderException(System::String ^ message, Exception ^ inner);
public ReaderException (string message, Exception inner);
new Microsoft.EnterpriseManagement.Common.ReaderException : string * Exception -> Microsoft.EnterpriseManagement.Common.ReaderException
Public Sub New (message As String, inner As Exception)
Parameters
- message
- String
The error message that describes the current exception.
- inner
- Exception
The exception that is the cause of the current exception.