BindIPEndPoint Delegate
Represents the method that specifies a local Internet Protocol address and port number for a ServicePoint.
Assembly: System (in System.dll)
'Declaration Public Delegate Function BindIPEndPoint ( _ servicePoint As ServicePoint, _ remoteEndPoint As IPEndPoint, _ retryCount As Integer _ ) As IPEndPoint 'Usage Dim instance As New BindIPEndPoint(AddressOf HandlerMethod)
Parameters
- servicePoint
- Type: System.Net.ServicePoint
The ServicePoint associated with the connection to be created.
- remoteEndPoint
- Type: System.Net.IPEndPoint
The remote IPEndPoint that specifies the remote host.
- retryCount
- Type: System.Int32
The number of times this delegate was called for a specified connection.
| Exception | Condition |
|---|---|
| System.OverflowException | retryCount is equal to Int32.MaxValue |
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 Nothing. If you want to abort the connection, the delegate must throw an exception.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.