BindIPEndPoint 代理人

定義

表示指定 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

與所要建立之連線關聯的 ServicePoint

remoteEndPoint
IPEndPoint

指定遠端主機的遠端 IPEndPoint

retryCount
Int32

為指定連線呼叫這個委派的次數。

傳回值

繫結至 IPEndPoint 的本機 ServicePoint

備註

BindIPEndPoint 由將 委派設定為引數, ServicePoint.BindIPEndPointDelegate 以 指定 委派所使用的 ServicePoint 委派。 此委派應該在傳 IPEndPoint 回 的 中指定本機 IP 位址和埠號碼。

如果.NET Framework無法在嘗試之後 Int32.MaxValue 系結傳 IPEndPoint 回的 ServicePointOverflowException 則會擲回 。

如果您想要委派提供連接系結的服務點控制,委派應該會傳回 null 。 如果您想要中止連線,委派必須擲回例外狀況。

擴充方法

GetMethodInfo(Delegate)

取得表示特定委派所代表之方法的物件。

適用於