Bewerken

Share via


SmtpFailedRecipientsException Constructors

Definition

Initializes a new instance of the SmtpFailedRecipientsException class.

Overloads

SmtpFailedRecipientsException()

This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes an empty instance of the SmtpFailedRecipientsException class.

SmtpFailedRecipientsException(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the SmtpFailedRecipientsException class with the specified String.

SmtpFailedRecipientsException(SerializationInfo, StreamingContext)

This API supports the product infrastructure and is not intended to be used directly from your code.

Obsolete.

Initializes a new instance of the SmtpFailedRecipientsException class from the specified instances of the SerializationInfo and StreamingContext classes.

SmtpFailedRecipientsException(String, Exception)

This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the SmtpFailedRecipientsException class with the specified String and inner Exception.

SmtpFailedRecipientsException(String, SmtpFailedRecipientException[])

This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the SmtpFailedRecipientsException class with the specified String and array of type SmtpFailedRecipientException.

SmtpFailedRecipientsException()

Source:
SmtpFailedRecipientsException.cs
Source:
SmtpFailedRecipientsException.cs
Source:
SmtpFailedRecipientsException.cs

Initializes an empty instance of the SmtpFailedRecipientsException class.

This API supports the product infrastructure and is not intended to be used directly from your code.

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

Applies to

SmtpFailedRecipientsException(String)

Source:
SmtpFailedRecipientsException.cs
Source:
SmtpFailedRecipientsException.cs
Source:
SmtpFailedRecipientsException.cs

Initializes a new instance of the SmtpFailedRecipientsException class with the specified String.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 SmtpFailedRecipientsException(System::String ^ message);
public SmtpFailedRecipientsException (string? message);
public SmtpFailedRecipientsException (string message);
new System.Net.Mail.SmtpFailedRecipientsException : string -> System.Net.Mail.SmtpFailedRecipientsException
Public Sub New (message As String)

Parameters

message
String

The exception message.

Applies to

SmtpFailedRecipientsException(SerializationInfo, StreamingContext)

Source:
SmtpFailedRecipientsException.cs
Source:
SmtpFailedRecipientsException.cs
Source:
SmtpFailedRecipientsException.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 SmtpFailedRecipientsException class from the specified instances of the SerializationInfo and StreamingContext classes.

This API supports the product infrastructure and is not intended to be used directly from your code.

protected:
 SmtpFailedRecipientsException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected SmtpFailedRecipientsException (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 SmtpFailedRecipientsException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Net.Mail.SmtpFailedRecipientsException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.Mail.SmtpFailedRecipientsException
[<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.Net.Mail.SmtpFailedRecipientsException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.Mail.SmtpFailedRecipientsException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

A SerializationInfo instance that contains the information required to serialize the new SmtpFailedRecipientsException instance.

context
StreamingContext

A StreamingContext that contains the source of the serialized stream that is associated with the new SmtpFailedRecipientsException instance.

Attributes

Remarks

This constructor implements the ISerializable interface for the SmtpFailedRecipientsException class.

See also

Applies to

SmtpFailedRecipientsException(String, Exception)

Source:
SmtpFailedRecipientsException.cs
Source:
SmtpFailedRecipientsException.cs
Source:
SmtpFailedRecipientsException.cs

Initializes a new instance of the SmtpFailedRecipientsException class with the specified String and inner Exception.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 SmtpFailedRecipientsException(System::String ^ message, Exception ^ innerException);
public SmtpFailedRecipientsException (string? message, Exception? innerException);
public SmtpFailedRecipientsException (string message, Exception innerException);
new System.Net.Mail.SmtpFailedRecipientsException : string * Exception -> System.Net.Mail.SmtpFailedRecipientsException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The exception message.

innerException
Exception

The inner exception.

Applies to

SmtpFailedRecipientsException(String, SmtpFailedRecipientException[])

Source:
SmtpFailedRecipientsException.cs
Source:
SmtpFailedRecipientsException.cs
Source:
SmtpFailedRecipientsException.cs

Initializes a new instance of the SmtpFailedRecipientsException class with the specified String and array of type SmtpFailedRecipientException.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 SmtpFailedRecipientsException(System::String ^ message, cli::array <System::Net::Mail::SmtpFailedRecipientException ^> ^ innerExceptions);
public SmtpFailedRecipientsException (string? message, System.Net.Mail.SmtpFailedRecipientException[] innerExceptions);
public SmtpFailedRecipientsException (string message, System.Net.Mail.SmtpFailedRecipientException[] innerExceptions);
new System.Net.Mail.SmtpFailedRecipientsException : string * System.Net.Mail.SmtpFailedRecipientException[] -> System.Net.Mail.SmtpFailedRecipientsException
Public Sub New (message As String, innerExceptions As SmtpFailedRecipientException())

Parameters

message
String

The exception message.

innerExceptions
SmtpFailedRecipientException[]

The array of recipients with delivery errors.

Applies to