PeerCollaboration.UnregisterApplication Method
Definition
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.
Unregisters the specified PeerApplication from the PeerCollaboration infrastructure.
public:
static void UnregisterApplication(System::Net::PeerToPeer::Collaboration::PeerApplication ^ application, System::Net::PeerToPeer::Collaboration::PeerApplicationRegistrationType type);
[System.Security.SecurityCritical]
public static void UnregisterApplication (System.Net.PeerToPeer.Collaboration.PeerApplication application, System.Net.PeerToPeer.Collaboration.PeerApplicationRegistrationType type);
[<System.Security.SecurityCritical>]
static member UnregisterApplication : System.Net.PeerToPeer.Collaboration.PeerApplication * System.Net.PeerToPeer.Collaboration.PeerApplicationRegistrationType -> unit
Public Shared Sub UnregisterApplication (application As PeerApplication, type As PeerApplicationRegistrationType)
Parameters
- application
- PeerApplication
The PeerApplication to unregister for the calling peer.
The type of deregistration to perform for either the calling peer or for all peers that exist on the machine.
- Attributes
Exceptions
The globally unique Id for the specified application does not exist or is empty.
The application
or type
parameter is set to null
.
The type
parameter is not set to a known value in PeerApplicationRegistrationType.
The UnregisterApplication(PeerApplication, PeerApplicationRegistrationType) operation could not be completed.
Remarks
Unregistering a PeerApplication stops the calling peer from receiving collaboration invitations for it. If the application being unregistered was not previously registered, this is a no-op.
Calling this method requires a PermissionState of Unrestricted. This state is created when the Peer collaboration session begins.