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

プロパティ値

SMTP で使用される ServicePoint プロパティに接続する Host

例外

Hostnull または空の文字列 ("") です。

- または -

Port が 0 です。

注釈

プロパティの ServicePoint 設定は、アプリケーションまたはマシン構成ファイルと クラスで指定された既定値を ServicePointManager 使用して作成されます。

適用対象

こちらもご覧ください