PeerContact::GetApplications Method (Guid)
Gets the collection of PeerApplication objects with the specified Guid from the local cache.
Assembly: System.Net (in System.Net.dll)
public:
[SecurityCriticalAttribute]
PeerApplicationCollection^ GetApplications(
Guid applicationId
)
Parameters
- applicationId
-
Type:
System::Guid
The Guid of the peer application to be retrieved.
Return Value
Type: System.Net.PeerToPeer.Collaboration::PeerApplicationCollection^The PeerApplicationCollection from the local cache. If no applications are found with the specified applicationId, a collection of size zero (0) is returned.
| Exception | Condition |
|---|---|
| InvalidOperationException |
|
| PeerToPeerException | Unable to complete GetApplications operation. |
If the calling peer is not subscribed to the PeerContact associated with the specified PeerEndPoint the RefreshData method must be called prior to calling this method.
While the caller is not required to sign-in to the collaboration infrastructure for this method to complete successfully, a successful call to RefreshData or one of the Subscribe methods must have been completed while the caller was previously signed in.
This functionality is only exposed on the PeerContact class. This functionality is not exposed on any other type of peer for security reasons.
Notes to Callers:
Calling this method requires a PermissionState of Unrestricted. This state is created when the peer collaboration session begins.
Available since 3.5