Breyta

Deila með


PeerCollaboration.UnregisterApplication 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);
[<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.

type
PeerApplicationRegistrationType

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.

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