Redigera

Dela via


SmtpClient.ServicePoint Property

Definition

Gets the network connection used to transmit the email message.

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

Property Value

A ServicePoint that connects to the Host property used for SMTP.

Exceptions

Host is null or the empty string ("").

-or-

Port is zero.

Remarks

The settings for the ServicePoint property are created using defaults specified in the application or machine configuration files and the ServicePointManager class.

Applies to

See also