PeerNameRegistration.EndPointCollection 属性

定义

获取为其注册关联对等名称的网络终结点的集合。

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

属性值

IPEndPointCollection

一个 EndPointCollection 对象,其中包含为其注册关联对等名称的网络终结点。 除非显式指定,否则对于引用类型,所有属性的默认值均为 null

注解

在命名空间中 System.Net ,一个 IPEndPoint 表示网络终结点作为 IP 地址和端口号。 对于 PNRP,必须为每个终结点提供 IP 地址和端口值。 可以提供的终结点的最大数目为 10。 Automatic address selection is used when this parameter is null.

如果使用了自动选择要注册的地址的注册方法,则没有用于确定为其注册对等名称的地址的方法。 也就是说,不会更新该 EndPointCollection 属性以反映所选地址。

为多个节点注册对等名称时,每个 PeerNameRegistration 节点都是不同的,并且 EndPointCollection 每个注册实例上定义的属性将有所不同。 此外,当某个 PeerName 注册注册到多个 Cloud实例时,每个注册都是不同的,并且终结点集合对于每个实例通常不同。

调用方说明

此对等方将与之通信的终结点列表与此对等名称已知(以不同方式存储)的终结点列表不同。

适用于

另请参阅