PeerCollaboration.GetLocalSetObjects Method

Definition

Obtains all PeerObject instances registered by the calling peer with the PeerCollaboration infrastructure on this machine.

C#
[System.Security.SecurityCritical]
public static System.Net.PeerToPeer.Collaboration.PeerObjectCollection GetLocalSetObjects();

Returns

A PeerObjectCollection which contains all the PeerObject instances registered by the calling peer with the PeerCollaboration infrastructure on the local machine.

If registered PeerObject instances are not discovered on the local machine, a collection of size zero (0) is returned.

Attributes

Exceptions

An invalid value was returned when this method attempted to enumerate all available PeerObject instances.

Remarks

Access to this property requires a PermissionState of Unrestricted. This state is created when the Peer collaboration session begins.

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also