Muokkaa

Jaa


PeerCollaboration.GetLocalSetObjects Method

Definition

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

public:
 static System::Net::PeerToPeer::Collaboration::PeerObjectCollection ^ GetLocalSetObjects();
[System.Security.SecurityCritical]
public static System.Net.PeerToPeer.Collaboration.PeerObjectCollection GetLocalSetObjects ();
[<System.Security.SecurityCritical>]
static member GetLocalSetObjects : unit -> System.Net.PeerToPeer.Collaboration.PeerObjectCollection
Public Shared Function GetLocalSetObjects () As PeerObjectCollection

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

See also