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
[C#]
public static ServicePoint FindServicePoint(
 Uri address,
 IWebProxy proxy
);
[C++]
public: static ServicePoint* FindServicePoint(
 Uri* address,
 IWebProxy* proxy
);
[JScript]
public static function FindServicePoint(
   address : Uri,
 proxy : IWebProxy
) : ServicePoint;

Parameters

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

Return Value

The ServicePoint that manages communications for the request.

Exceptions

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.

Remarks

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.

Requirements

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

Show:
© 2014 Microsoft