Export (0) Print
Expand All

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

Supported in: 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft