This documentation is archived and is not being maintained.

ServicePointManager.FindServicePoint Method (Uri)

.NET Framework 1.1

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

[Visual Basic]
Overloads Public Shared Function FindServicePoint( _
   ByVal address As Uri _
) As ServicePoint
[C#]
public static ServicePoint FindServicePoint(
 Uri address
);
[C++]
public: static ServicePoint* FindServicePoint(
 Uri* address
);
[JScript]
public static function FindServicePoint(
   address : Uri
) : ServicePoint;

Parameters

address
The Uri of the Internet resource to contact.

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: