ServicePoint.BindIPEndPointDelegate Właściwość

Definicja

Określa pełnomocnika do skojarzenia IPEndPoint lokalnego z ServicePoint.

public:
 property System::Net::BindIPEndPoint ^ BindIPEndPointDelegate { System::Net::BindIPEndPoint ^ get(); void set(System::Net::BindIPEndPoint ^ value); };
public System.Net.BindIPEndPoint? BindIPEndPointDelegate { get; set; }
public System.Net.BindIPEndPoint BindIPEndPointDelegate { get; set; }
member this.BindIPEndPointDelegate : System.Net.BindIPEndPoint with get, set
Public Property BindIPEndPointDelegate As BindIPEndPoint

Wartość właściwości

Delegat, który wymusza ServicePoint użyć określonego lokalnego adresu IP i numeru portu. Wartość domyślna to null.

Uwagi

Ostrożność

WebRequest, HttpWebRequest, ServicePointi WebClient są przestarzałe i nie należy ich używać do tworzenia nowych aplikacji. Zamiast tego użyj HttpClient.

Niektóre techniki równoważenia obciążenia wymagają, aby klient używał określonego lokalnego adresu IP i numeru portu, a nie IPAddress.Any (lub IPAddress.IPv6Any dla protokołu internetowego w wersji 6) i portu efemerycznego. BindIPEndPointDelegate może spełnić to wymaganie.

Dotyczy