PeerCollaboration.GetLocalSetObjects Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
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.
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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: