แก้ไข

แชร์ผ่าน


PeerNameRegistration.EndPointCollection Property

Definition

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

Property Value

An EndPointCollection object that contains the network endpoints for which the associated peer name is registered. Unless explicitly specified, the default value for all properties is null for reference types.

Remarks

In the System.Net namespace, an IPEndPoint represents a network endpoint as an IP address and a port number. For PNRP, an IP address and port value must be provided for each endpoint. The maximum number of endpoints that can be provided is ten. 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. That is, the EndPointCollection property will not be updated to reflect the addresses selected.

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. 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.

Notes to Callers

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.

Applies to

See also