SmtpFailedRecipientException SmtpFailedRecipientException SmtpFailedRecipientException SmtpFailedRecipientException Constructors

定義

多載

SmtpFailedRecipientException() SmtpFailedRecipientException() SmtpFailedRecipientException()

初始化 SmtpFailedRecipientException 類別的空執行個體。Initializes an empty instance of the SmtpFailedRecipientException class.

SmtpFailedRecipientException(String) SmtpFailedRecipientException(String) SmtpFailedRecipientException(String) SmtpFailedRecipientException(String)

使用指定的錯誤訊息,初始化 SmtpFailedRecipientException 類別的新執行個體。Initializes a new instance of the SmtpFailedRecipientException class with the specified error message.

SmtpFailedRecipientException(SmtpStatusCode, String) SmtpFailedRecipientException(SmtpStatusCode, String) SmtpFailedRecipientException(SmtpStatusCode, String) SmtpFailedRecipientException(SmtpStatusCode, String)

使用指定的狀態碼和電子郵件地址,初始化 SmtpFailedRecipientException 類別的新執行個體。Initializes a new instance of the SmtpFailedRecipientException class with the specified status code and email address.

SmtpFailedRecipientException(String, Exception) SmtpFailedRecipientException(String, Exception) SmtpFailedRecipientException(String, Exception) SmtpFailedRecipientException(String, Exception)

使用指定的錯誤訊息和內部例外狀況,初始化 SmtpException 類別的新執行個體。Initializes a new instance of the SmtpException class with the specified error message and inner exception.

SmtpFailedRecipientException(SmtpStatusCode, String, String) SmtpFailedRecipientException(SmtpStatusCode, String, String) SmtpFailedRecipientException(SmtpStatusCode, String, String) SmtpFailedRecipientException(SmtpStatusCode, String, String)

使用指定的狀態碼、電子郵件地址和伺服器回應,初始化 SmtpFailedRecipientException 類別的新執行個體。Initializes a new instance of the SmtpFailedRecipientException class with the specified status code, email address, and server response.

SmtpFailedRecipientException(String, String, Exception) SmtpFailedRecipientException(String, String, Exception) SmtpFailedRecipientException(String, String, Exception) SmtpFailedRecipientException(String, String, Exception)

使用指定的錯誤訊息、電子郵件地址和內部例外狀況,初始化 SmtpException 類別的新執行個體。Initializes a new instance of the SmtpException class with the specified error message, email address, and inner exception.

SmtpFailedRecipientException(SerializationInfo, StreamingContext) SmtpFailedRecipientException(SerializationInfo, StreamingContext) SmtpFailedRecipientException(SerializationInfo, StreamingContext) SmtpFailedRecipientException(SerializationInfo, StreamingContext)

初始化 SmtpFailedRecipientException 類別的新執行個體,這個執行個體是來自 SerializationInfoStreamingContext 類別的指定執行個體。Initializes a new instance of the SmtpFailedRecipientException class from the specified instances of the SerializationInfo and StreamingContext classes.

SmtpFailedRecipientException() SmtpFailedRecipientException() SmtpFailedRecipientException()

初始化 SmtpFailedRecipientException 類別的空執行個體。Initializes an empty instance of the SmtpFailedRecipientException class.

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

SmtpFailedRecipientException(String) SmtpFailedRecipientException(String) SmtpFailedRecipientException(String) SmtpFailedRecipientException(String)

使用指定的錯誤訊息,初始化 SmtpFailedRecipientException 類別的新執行個體。Initializes a new instance of the SmtpFailedRecipientException class with the specified error message.

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

參數

message
String String String String

String,包含錯誤訊息。A String that contains the error message.

備註

此函式會message使用參數來Message初始化屬性。This constructor uses the message parameter to initialize the Message property.

SmtpFailedRecipientException(SmtpStatusCode, String) SmtpFailedRecipientException(SmtpStatusCode, String) SmtpFailedRecipientException(SmtpStatusCode, String) SmtpFailedRecipientException(SmtpStatusCode, String)

使用指定的狀態碼和電子郵件地址,初始化 SmtpFailedRecipientException 類別的新執行個體。Initializes a new instance of the SmtpFailedRecipientException class with the specified status code and email address.

public:
 SmtpFailedRecipientException(System::Net::Mail::SmtpStatusCode statusCode, System::String ^ failedRecipient);
public SmtpFailedRecipientException (System.Net.Mail.SmtpStatusCode statusCode, string failedRecipient);
new System.Net.Mail.SmtpFailedRecipientException : System.Net.Mail.SmtpStatusCode * string -> System.Net.Mail.SmtpFailedRecipientException
Public Sub New (statusCode As SmtpStatusCode, failedRecipient As String)

參數

failedRecipient
String String String String

包含電子郵件地址的 StringA String that contains the email address.

備註

這個函式會statusCode使用參數來StatusCode初始化屬性,並使用failedRecipient參數來初始化FailedRecipient屬性。This constructor uses the statusCode parameter to initialize the StatusCode property and uses the failedRecipient parameter to initialize the FailedRecipient property.

SmtpFailedRecipientException(String, Exception) SmtpFailedRecipientException(String, Exception) SmtpFailedRecipientException(String, Exception) SmtpFailedRecipientException(String, Exception)

使用指定的錯誤訊息和內部例外狀況,初始化 SmtpException 類別的新執行個體。Initializes a new instance of the SmtpException class with the specified error message and inner exception.

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

參數

message
String String String String

String,描述發生的錯誤。A String that describes the error that occurred.

innerException
Exception Exception Exception Exception

做為目前例外狀況發生原因的例外狀況。The exception that is the cause of the current exception.

SmtpFailedRecipientException(SmtpStatusCode, String, String) SmtpFailedRecipientException(SmtpStatusCode, String, String) SmtpFailedRecipientException(SmtpStatusCode, String, String) SmtpFailedRecipientException(SmtpStatusCode, String, String)

使用指定的狀態碼、電子郵件地址和伺服器回應,初始化 SmtpFailedRecipientException 類別的新執行個體。Initializes a new instance of the SmtpFailedRecipientException class with the specified status code, email address, and server response.

public:
 SmtpFailedRecipientException(System::Net::Mail::SmtpStatusCode statusCode, System::String ^ failedRecipient, System::String ^ serverResponse);
public SmtpFailedRecipientException (System.Net.Mail.SmtpStatusCode statusCode, string failedRecipient, string serverResponse);
new System.Net.Mail.SmtpFailedRecipientException : System.Net.Mail.SmtpStatusCode * string * string -> System.Net.Mail.SmtpFailedRecipientException
Public Sub New (statusCode As SmtpStatusCode, failedRecipient As String, serverResponse As String)

參數

failedRecipient
String String String String

包含電子郵件地址的 StringA String that contains the email address.

serverResponse
String String String String

String,包含伺服器回應。A String that contains the server response.

備註

這個函式會statusCode使用參數來StatusCode初始化屬性,並使用failedRecipient參數來初始化FailedRecipient屬性。This constructor uses the statusCode parameter to initialize the StatusCode property and uses the failedRecipient parameter to initialize the FailedRecipient property.

SmtpFailedRecipientException(String, String, Exception) SmtpFailedRecipientException(String, String, Exception) SmtpFailedRecipientException(String, String, Exception) SmtpFailedRecipientException(String, String, Exception)

使用指定的錯誤訊息、電子郵件地址和內部例外狀況,初始化 SmtpException 類別的新執行個體。Initializes a new instance of the SmtpException class with the specified error message, email address, and inner exception.

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

參數

message
String String String String

String,描述發生的錯誤。A String that describes the error that occurred.

failedRecipient
String String String String

包含電子郵件地址的 StringA String that contains the email address.

innerException
Exception Exception Exception Exception

做為目前例外狀況發生原因的例外狀況。The exception that is the cause of the current exception.

SmtpFailedRecipientException(SerializationInfo, StreamingContext) SmtpFailedRecipientException(SerializationInfo, StreamingContext) SmtpFailedRecipientException(SerializationInfo, StreamingContext) SmtpFailedRecipientException(SerializationInfo, StreamingContext)

初始化 SmtpFailedRecipientException 類別的新執行個體,這個執行個體是來自 SerializationInfoStreamingContext 類別的指定執行個體。Initializes a new instance of the SmtpFailedRecipientException class from the specified instances of the SerializationInfo and StreamingContext classes.

protected:
 SmtpFailedRecipientException(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected SmtpFailedRecipientException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new System.Net.Mail.SmtpFailedRecipientException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.Mail.SmtpFailedRecipientException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

參數

info
SerializationInfo SerializationInfo SerializationInfo SerializationInfo

SerializationInfo,包含序列化新 SmtpFailedRecipientException 所需的資訊。A SerializationInfo that contains the information required to serialize the new SmtpFailedRecipientException.

context
StreamingContext StreamingContext StreamingContext StreamingContext

StreamingContext,包含與新執行個體關聯之序列化資料流的來源和目的端。A StreamingContext that contains the source and destination of the serialized stream that is associated with the new instance.

備註

這個函式會實作為SmtpFailedRecipientException類別的介面。ISerializableThis constructor implements the ISerializable interface for the SmtpFailedRecipientException class.

適用於