BindIPEndPoint 代理人
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示指定 ServicePoint 之本機網際網路通訊協定位址和連接埠編號的方法。
public delegate System::Net::IPEndPoint ^ BindIPEndPoint(ServicePoint ^ servicePoint, IPEndPoint ^ remoteEndPoint, int retryCount);
C#
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將 傳回的 系結至 ServicePoint ,OverflowException則會擲回 IPEndPoint 。
如果您要委派提供連接系結的服務點控制,委派應該會傳回 null
。 如果您想要中止連線,委派必須擲回例外狀況。
Get |
取得表示特定委派所代表之方法的物件。 |
產品 | 版本 |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.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 |