Szerkesztés

Megosztás a következőn keresztül:


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)
Obsolete.

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()

Source:
WarningException.cs
Source:
WarningException.cs
Source:
WarningException.cs

Initializes a new instance of the WarningException class.

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

Applies to

WarningException(String)

Source:
WarningException.cs
Source:
WarningException.cs
Source:
WarningException.cs

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);
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.

Applies to

WarningException(SerializationInfo, StreamingContext)

Source:
WarningException.cs
Source:
WarningException.cs
Source:
WarningException.cs

Caution

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

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);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
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
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
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.

Attributes

Applies to

WarningException(String, Exception)

Source:
WarningException.cs
Source:
WarningException.cs
Source:
WarningException.cs

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);
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.

Applies to

WarningException(String, String)

Source:
WarningException.cs
Source:
WarningException.cs
Source:
WarningException.cs

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);
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.

Applies to

WarningException(String, String, String)

Source:
WarningException.cs
Source:
WarningException.cs
Source:
WarningException.cs

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);
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