PeerNameRegistration.EndPointCollection 属性
定义
获取为其注册关联对等名称的网络终结点的集合。Gets the collection of network endpoints for which the associated peer name is registered.
public:
property System::Net::IPEndPointCollection ^ EndPointCollection { System::Net::IPEndPointCollection ^ get(); };
public System.Net.IPEndPointCollection EndPointCollection { get; }
member this.EndPointCollection : System.Net.IPEndPointCollection
Public ReadOnly Property EndPointCollection As IPEndPointCollection
属性值
一个 EndPointCollection 对象,其中包含为其注册关联对等名称的网络终结点。An EndPointCollection object that contains the network endpoints for which the associated peer name is registered. 除非显式指定,否则对于引用类型,所有属性的默认值均为 null。Unless explicitly specified, the default value for all properties is null for reference types.
注解
在 System.Net 命名空间中,将 IPEndPoint 网络终结点表示为 IP 地址和端口号。In the System.Net namespace, an IPEndPoint represents a network endpoint as an IP address and a port number. 对于 PNRP,必须为每个终结点提供 IP 地址和端口值。For PNRP, an IP address and port value must be provided for each endpoint. 最多可提供10个终结点。The maximum number of endpoints that can be provided is ten. 如果此参数为,则使用自动地址选择 null 。Automatic address selection is used when this parameter is null.
如果使用注册方法自动选择要注册的地址,则没有方法来确定对其注册对等名称的地址。If a registration method is used that automatically selects the addresses to register, there is no method to determine the addresses for which the peer name was registered. 也就是说, EndPointCollection 将不会更新属性以反映所选的地址。That is, the EndPointCollection property will not be updated to reflect the addresses selected.
为多个节点注册对等名称时,每个节点 PeerNameRegistration 都是不同的,并且 EndPointCollection 在每个注册实例上定义的属性将有所不同。When a peer name is registered for more than one node, each PeerNameRegistration is distinct and the EndPointCollection property defined on each registration instance will be different. 此外,当 PeerName 注册到多个时 Cloud ,每个注册都是不同的,并且对于每个实例,终结点的集合通常是不同的。Also, when a PeerName is registered into more than one Cloud, each registration is distinct and the collection of endpoints will usually be different for each instance.
调用方说明
此对等方将与之通信的终结点的列表与此对等名称已知的终结点列表不同,以不同的方式存储。The list of endpoints with which this peer will communicate is not the same as the list of endpoints by which this peer name is known, which is stored differently.