PeerTransportElement.ListenIPAddress 属性
定义
获取或设置配置元素,该配置元素指定对等传输侦听的 IP 地址。Gets or sets a configuration element that specifies the IP address upon which the peer transport listens.
public:
property System::Net::IPAddress ^ ListenIPAddress { System::Net::IPAddress ^ get(); void set(System::Net::IPAddress ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.ServiceModel.Configuration.PeerTransportListenAddressConverter))]
[System.Configuration.ConfigurationProperty("listenIPAddress", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
public System.Net.IPAddress ListenIPAddress { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.ServiceModel.Configuration.PeerTransportListenAddressConverter))>]
[<System.Configuration.ConfigurationProperty("listenIPAddress", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
member this.ListenIPAddress : System.Net.IPAddress with get, set
Public Property ListenIPAddress As IPAddress
属性值
一个 IPAddress,其中包含对等传输侦听的 IP 地址。A IPAddress that contains the IP address upon which the peer transport listens.
- 属性
注解
如果未设置此属性,或将其设置为空引用,则关联的 PeerNode 将对为本地计算机配置的所有全局地址(IPv4 和 IPv6 地址)进行侦听。If this property is not set, or is set to a null reference, the associated PeerNode listens on all global addresses (both IPv4 and IPv6) configured for the local machine.