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