ServicePoint.BindIPEndPointDelegate 属性

定义

指定用于将本地 IPEndPointServicePoint 关联的委托。

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

注解

某些负载均衡技术要求客户端使用特定的本地 IP 地址和端口号,而不是 IPAddress.Any (或 IPAddress.IPv6Any Internet 协议版本 6) 和临时端口。 可以 BindIPEndPointDelegate 满足此要求。

适用于