PeerNameRegistration.EndPointCollection Property

 

Gets the collection of network endpoints for which the associated peer name is registered.

Namespace:   System.Net.PeerToPeer
Assembly:  System.Net (in System.Net.dll)

public IPEndPointCollection EndPointCollection { get; }

Property Value

Type: System.Net.IPEndPointCollection

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.

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

.NET Framework
Available since 3.5
Return to top
Show: