Export (0) Print
Expand All

ServicePointManager.FindServicePoint Method (Uri, IWebProxy)

.NET Framework 1.1

Finds an existing ServicePoint or creates a new ServicePoint to manage communications with the specified Uri instance.

[Visual Basic]
Overloads Public Shared Function FindServicePoint( _
   ByVal address As Uri, _
   ByVal proxy As IWebProxy _
) As ServicePoint
public static ServicePoint FindServicePoint(
 Uri address,
 IWebProxy proxy
public: static ServicePoint* FindServicePoint(
 Uri* address,
 IWebProxy* proxy
public static function FindServicePoint(
   address : Uri,
 proxy : IWebProxy
) : ServicePoint;


A Uri instance containing the address of the Internet resource to contact.
Proxy data for this request.

Return Value

The ServicePoint that manages communications for the request.


Exception Type Condition
ArgumentNullException address is a null reference (Nothing in Visual Basic).
InvalidOperationException The maximum number of service points defined in MaxServicePoints has been reached.


The FindServicePoint method returns the ServicePoint instance associated with the specified Internet host name. If no ServicePoint exists for that host, the ServicePointManager creates one.


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, Common Language Infrastructure (CLI) Standard

See Also

ServicePointManager Class | ServicePointManager Members | System.Net Namespace | ServicePointManager.FindServicePoint Overload List

© 2015 Microsoft