แก้ไข

แชร์ผ่าน


MulticastNotSupportedException Constructors

Definition

Initializes a new instance of the MulticastNotSupportedException class.

Overloads

MulticastNotSupportedException()

Initializes a new instance of the MulticastNotSupportedException class.

MulticastNotSupportedException(String)

Initializes a new instance of the MulticastNotSupportedException class with a specified error message.

MulticastNotSupportedException(String, Exception)

Initializes a new instance of the MulticastNotSupportedException class with a specified error message and a reference to the inner exception that is the cause of this exception.

MulticastNotSupportedException()

Source:
MulticastNotSupportedException.cs
Source:
MulticastNotSupportedException.cs
Source:
MulticastNotSupportedException.cs

Initializes a new instance of the MulticastNotSupportedException class.

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

Remarks

This constructor initializes the Message property of the new instance to a system-supplied message that describes the error, such as "This operation cannot be performed with the specified delegates." This message takes into account the current system culture.

The following table shows the initial property values for an instance of MulticastNotSupportedException.

Property Value
InnerException A null reference (Nothing in Visual Basic).
Message The localized error message string.

Applies to

MulticastNotSupportedException(String)

Source:
MulticastNotSupportedException.cs
Source:
MulticastNotSupportedException.cs
Source:
MulticastNotSupportedException.cs

Initializes a new instance of the MulticastNotSupportedException class with a specified error message.

public:
 MulticastNotSupportedException(System::String ^ message);
public MulticastNotSupportedException (string? message);
public MulticastNotSupportedException (string message);
new MulticastNotSupportedException : string -> MulticastNotSupportedException
Public Sub New (message As String)

Parameters

message
String

The message that describes the error.

Remarks

The content of the message parameter should be understandable to the user. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

The following table shows the initial property values for an instance of MulticastNotSupportedException.

Property Value
InnerException A null reference (Nothing in Visual Basic).
Message The error message string.

Applies to

MulticastNotSupportedException(String, Exception)

Source:
MulticastNotSupportedException.cs
Source:
MulticastNotSupportedException.cs
Source:
MulticastNotSupportedException.cs

Initializes a new instance of the MulticastNotSupportedException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public:
 MulticastNotSupportedException(System::String ^ message, Exception ^ inner);
public MulticastNotSupportedException (string? message, Exception? inner);
public MulticastNotSupportedException (string message, Exception inner);
new MulticastNotSupportedException : string * Exception -> MulticastNotSupportedException
Public Sub New (message As String, inner As Exception)

Parameters

message
String

The error message that explains the reason for the exception.

inner
Exception

The exception that is the cause of the current exception. If the inner parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception.

Remarks

An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property. The InnerException property returns the same value that is passed into the constructor, or a null reference (Nothing in Visual Basic) if the InnerException property does not supply the inner exception value to the constructor.

The following table shows the initial property values for an instance of MulticastNotSupportedException.

Property Value
InnerException The inner exception reference.
Message The error message string.

See also

Applies to