SmtpClient.ServicePoint 屬性

定義

取得用來傳送電子郵件訊息的網路連線。

public:
 property System::Net::ServicePoint ^ ServicePoint { System::Net::ServicePoint ^ get(); };
public System.Net.ServicePoint ServicePoint { get; }
member this.ServicePoint : System.Net.ServicePoint
Public ReadOnly Property ServicePoint As ServicePoint

屬性值

ServicePoint,連接到用於 SMTP 的 Host 屬性。

例外狀況

Hostnull 或空字串 ("")。

-或-

Port 為零。

備註

屬性的 ServicePoint 設定是使用應用程式或計算機組態檔和 ServicePointManager 類別中指定的預設值來建立。

適用於

另請參閱