WarningException Constructors

Definition

Initializes a new instance of the WarningException class.

Overloads

WarningException()

Initializes a new instance of the WarningException class.

WarningException(String)

Initializes a new instance of the WarningException class with the specified message and no Help file.

WarningException(SerializationInfo, StreamingContext)

Initializes a new instance of the WarningException class using the specified serialization data and context.

WarningException(String, Exception)

Initializes a new instance of the WarningException class with the specified detailed description and the specified exception.

WarningException(String, String)

Initializes a new instance of the WarningException class with the specified message, and with access to the specified Help file.

WarningException(String, String, String)

Initializes a new instance of the WarningException class with the specified message, and with access to the specified Help file and topic.

WarningException()

Initializes a new instance of the WarningException class.

public:
 WarningException();
public WarningException ();
Public Sub New ()

WarningException(String)

Initializes a new instance of the WarningException class with the specified message and no Help file.

public:
 WarningException(System::String ^ message);
public WarningException (string message);
new System.ComponentModel.WarningException : string -> System.ComponentModel.WarningException
Public Sub New (message As String)

Parameters

message
String

The message to display to the end user.

WarningException(SerializationInfo, StreamingContext)

Initializes a new instance of the WarningException class using the specified serialization data and context.

protected:
 WarningException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected WarningException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.ComponentModel.WarningException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ComponentModel.WarningException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The SerializationInfo to be used for deserialization.

context
StreamingContext

The destination to be used for deserialization.

WarningException(String, Exception)

Initializes a new instance of the WarningException class with the specified detailed description and the specified exception.

public:
 WarningException(System::String ^ message, Exception ^ innerException);
public WarningException (string message, Exception innerException);
new System.ComponentModel.WarningException : string * Exception -> System.ComponentModel.WarningException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

A detailed description of the error.

innerException
Exception

A reference to the inner exception that is the cause of this exception.

WarningException(String, String)

Initializes a new instance of the WarningException class with the specified message, and with access to the specified Help file.

public:
 WarningException(System::String ^ message, System::String ^ helpUrl);
public WarningException (string message, string helpUrl);
new System.ComponentModel.WarningException : string * string -> System.ComponentModel.WarningException
Public Sub New (message As String, helpUrl As String)

Parameters

message
String

The message to display to the end user.

helpUrl
String

The Help file to display if the user requests help.

WarningException(String, String, String)

Initializes a new instance of the WarningException class with the specified message, and with access to the specified Help file and topic.

public:
 WarningException(System::String ^ message, System::String ^ helpUrl, System::String ^ helpTopic);
public WarningException (string message, string helpUrl, string helpTopic);
new System.ComponentModel.WarningException : string * string * string -> System.ComponentModel.WarningException
Public Sub New (message As String, helpUrl As String, helpTopic As String)

Parameters

message
String

The message to display to the end user.

helpUrl
String

The Help file to display if the user requests help.

helpTopic
String

The Help topic to display if the user requests help.

Applies to