This documentation is archived and is not being maintained.

PeerNameRegistration.UseAutoEndPointSelection Property

Gets or sets a value that specifies whether to use automatic endpoint selection when traversing a peer mesh or Cloud.

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

public bool UseAutoEndPointSelection { get; set; }

Property Value

Type: System.Boolean
True if automatic endpoint selection is to be used; false if some other method will be used to determine an endpoint. The default value is true.

When auto endpoint selection is used (this property is set to true) with no endpoint information specified prior to the start of a PeerNameRegistration, the system chooses individual endpoints and publishes them with the associated peer name into all available clouds. If the port is not specified, auto selection chooses zero as the Port.

When set to false, auto selection as described above is not performed. This enables the registration process to publish a peer name along with a data blob (as specified by the Data property). No endpoints are associated with the name.

If a registration method is used that automatically selects the addresses to register, there is no method to determine what addresses for which the PeerName object was registered. That is, the EndPointCollection property will not be updated to reflect the addresses selected.

Updating this property after peer name registration has started has no effect.

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