Export (0) Print
Expand All

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft