Language

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 プロパティを設定して、ServicePoint.BindIPEndPointDelegateでデリゲートを使用するように指定します。 このデリゲートは、返される IPEndPointでローカル IP アドレスとポート番号を指定する必要があります。

IPEndPoint試行後に返されたServicePointをInt32.MaxValueにバインドできない場合は、OverflowExceptionがスローされます。

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

拡張メソッド

名前 説明
GetMethodInfo(Delegate)

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

適用対象