ServicePoint.BindIPEndPointDelegate 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指定要将本地 IPEndPoint 与 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
属性值
强制 ServicePoint 使用特定本地 Internet 协议(IP)地址和端口号的委托。 默认值为 null。
注解
谨慎
WebRequest、HttpWebRequest、ServicePoint和 WebClient 已过时,不应将其用于新开发。 请改用 HttpClient。
某些负载均衡技术要求客户端使用特定的本地 IP 地址和端口号,而不是 IPAddress.Any(或 IPAddress.IPv6Any Internet 协议版本 6)和临时端口。 你的 BindIPEndPointDelegate 可以满足此要求。