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に 返された IPEndPointServicePoint にバインドできない場合は、 OverflowException がスローされます。

デリゲートが接続バインディングのサービス ポイント コントロールを提供する場合、デリゲートは を返す null必要があります。 接続を中止する場合、デリゲートは例外をスローする必要があります。

拡張メソッド

GetMethodInfo(Delegate)

指定したデリゲートによって表されるメソッドを表すオブジェクトを取得します。

適用対象