SmtpClient.ServicePoint Property


Gets the network connection used to transmit the e-mail message.

Namespace:   System.Net.Mail
Assembly:  System (in System.dll)

member ServicePoint : ServicePoint with get

Property Value

Type: System.Net.ServicePoint

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

Exception Condition

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


Port is zero.

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

The following code example demonstrates accessing the ServicePoint property.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top