Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

BindIPEndPoint Delegate

Represents the method that specifies a local Internet Protocol address and port number for a ServicePoint.

Namespace: System.Net
Assembly: System (in system.dll)

Public Delegate Function BindIPEndPoint ( _
	servicePoint As ServicePoint, _
	remoteEndPoint As IPEndPoint, _
	retryCount As Integer _
) As IPEndPoint
Dim instance As New BindIPEndPoint(AddressOf HandlerMethod)
/** @delegate */
public delegate IPEndPoint BindIPEndPoint (
	ServicePoint servicePoint, 
	IPEndPoint remoteEndPoint, 
	int retryCount
Not applicable.



The ServicePoint associated with the connection to be created.


The remote IPEndPoint that specifies the remote host.


The number of times this delegate was called for a specified connection.

Return Value

The local IPEndPoint to which the ServicePoint is bound.

Specify that the BindIPEndPoint delegate is used by a ServicePoint by setting the ServicePoint.BindIPEndPointDelegate property with the delegate as an argument. This delegate should specify a local IP address and port number in the returned IPEndPoint.

If the .NET Framework cannot bind the returned IPEndPoint to the ServicePoint after Int32.MaxValue attempts, an OverflowException is thrown.

If you want the delegate to give the service point control of the connection binding, the delegate should return a null reference (Nothing in Visual Basic). If you want to abort the connection, the delegate must throw an exception.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

© 2015 Microsoft