Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

PeerCollaboration.UnregisterApplication Method

Deregisters the specified PeerApplication from the PeerCollaboration infrastructure.

Namespace:  System.Net.PeerToPeer.Collaboration
Assembly:  System.Net (in System.Net.dll)

public static void UnregisterApplication(
	PeerApplication application,
	PeerApplicationRegistrationType type


Type: System.Net.PeerToPeer.Collaboration.PeerApplication

The PeerApplication to deregister for the calling peer.

Type: System.Net.PeerToPeer.Collaboration.PeerApplicationRegistrationType

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


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 operation could not be completed.

Deregistering a PeerApplication stops the calling peer from receiving collaboration invitations for it. If the application being deregistered 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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft