System.Net.BindIPEndPoint Delegate

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

Syntax

public delegate IPEndPoint BindIPEndPoint (ServicePoint servicePoint, IPEndPoint remoteEndPoint, int retryCount)

Parameters

servicePoint
Documentation for this section has not yet been entered.
remoteEndPoint
Documentation for this section has not yet been entered.
retryCount
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Specify that the System.Net.BindIPEndPoint delegate is used by a System.Net.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 System.Net.IPEndPoint.

If the .NET Framework cannot bind the returned System.Net.IPEndPoint to the System.Net.ServicePoint after int.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 null. If you want to abort the connection, the delegate must throw an exception.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0