PeerCollaboration.GetLocalSetObjects Method ()

 

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

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

[SecurityCriticalAttribute]
public static PeerObjectCollection GetLocalSetObjects()

Return Value

Type: System.Net.PeerToPeer.Collaboration.PeerObjectCollection

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.

Exception Condition
PeerToPeerException

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

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

.NET Framework
Available since 3.5
Return to top
Show: