ServicePoint Property

FtpWebRequest.ServicePoint Property


Gets the ServicePoint object used to connect to the FTP server.

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

member ServicePoint : ServicePoint with get

Property Value

Type: System.Net.ServicePoint

A ServicePoint object that can be used to customize connection behavior.

If no ServicePoint object exists, one is created for the FTP server. To set the maximum number of connections that can be open for an FTP server, set the ConnectionLimit property of the ServicePoint instance returned by this property.

The following code example retrieves the service point from a request and sets the maximum number of connections to one.

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

.NET Framework
Available since 2.0
Return to top
© 2015 Microsoft