BindIPEndPoint Delegate
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the method that specifies a local Internet Protocol address and port number for a ServicePoint.
public delegate System::Net::IPEndPoint ^ BindIPEndPoint(ServicePoint ^ servicePoint, IPEndPoint ^ remoteEndPoint, int retryCount);
public delegate System.Net.IPEndPoint BindIPEndPoint(ServicePoint servicePoint, IPEndPoint remoteEndPoint, int retryCount);
type BindIPEndPoint = delegate of ServicePoint * IPEndPoint * int -> IPEndPoint
Public Delegate Function BindIPEndPoint(servicePoint As ServicePoint, remoteEndPoint As IPEndPoint, retryCount As Integer) As IPEndPoint
- servicePoint
- ServicePoint
The ServicePoint associated with the connection to be created.
- remoteEndPoint
- IPEndPoint
The remote IPEndPoint that specifies the remote host.
- retryCount
- Int32
The number of times this delegate was called for a specified connection.
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 null
. If you want to abort the connection, the delegate must throw an exception.
Get |
Gets an object that represents the method represented by the specified delegate. |
Product | Versions |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: