This documentation is archived and is not being maintained.

ServicePointManager Class

Manages the collection of ServicePoint instances.

For a list of all members of this type, see ServicePointManager Members.


[Visual Basic]
Public Class ServicePointManager
public class ServicePointManager
public __gc class ServicePointManager
public class ServicePointManager

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


ServicePointManager is a static class used to create, maintain, and delete instances of the ServicePoint class.

When an application requests a connection to an Internet resource URI through the ServicePointManager, the ServicePointManager returns a ServicePoint instance containing connection information for the host identified by the URI. If there is an existing ServicePoint for that host, the ServicePointManager returns the existing ServicePoint, otherwise the ServicePointManager creates a new ServicePoint instance.


[Visual Basic, C#, C++] The following example creates a ServicePoint instance for connections to the URI .

[Visual Basic] 
Dim myUri As New Uri("")
Dim mySP As ServicePoint = ServicePointManager.FindServicePoint(myUri)

Uri myUri = new Uri("");
 ServicePoint mySP = ServicePointManager.FindServicePoint(myUri);

Uri* myUri = new Uri(S"");
 ServicePoint* mySP = ServicePointManager::FindServicePoint(myUri);

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.


Namespace: System.Net

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: System (in System.dll)

See Also

ServicePointManager Members | System.Net Namespace