语言

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 的属性的 AHost。

例外

Host 是 null 或空字符串(“)。

-或-

Port 为零。

注解

使用应用程序或计算机配置文件和ServicePoint类中指定的默认值创建属性的设置ServicePointManager。

适用于

另请参阅