PeerCollaboration.UnregisterApplication(PeerApplication, PeerApplicationRegistrationType) PeerCollaboration.UnregisterApplication(PeerApplication, PeerApplicationRegistrationType) PeerCollaboration.UnregisterApplication(PeerApplication, PeerApplicationRegistrationType) PeerCollaboration.UnregisterApplication(PeerApplication, PeerApplicationRegistrationType) Method

Definition

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);
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 PeerApplication PeerApplication PeerApplication

The PeerApplication to unregister for the calling peer.

type
PeerApplicationRegistrationType PeerApplicationRegistrationType PeerApplicationRegistrationType PeerApplicationRegistrationType

The type of deregistration to perform for either the calling peer or for all peers that exist on the machine.

Exceptions

The globally unique Id for the specified application does not exist or is empty.

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.

Applies to

See also