PeerCollaboration.UnregisterApplication(PeerApplication, PeerApplicationRegistrationType) Método
Definição
Cancela o registro do PeerApplication especificado da infraestrutura de PeerCollaboration.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)
Parâmetros
- application
- PeerApplication
O PeerApplication cujo registro será cancelado para o par de chamada.The PeerApplication to unregister for the calling peer.
O tipo de cancelamento de registro a ser executado para o par de chamada ou para todos os pares que existem no computador.The type of deregistration to perform for either the calling peer or for all peers that exist on the machine.
- Atributos
Exceções
O Id global exclusivo para o aplicativo especificado não existe ou está vazio.The globally unique Id for the specified application does not exist or is empty.
O parâmetro application ou type é definido como null.The application or type parameter is set to null.
O parâmetro type não está definido como um valor conhecido em PeerApplicationRegistrationType.The type parameter is not set to a known value in PeerApplicationRegistrationType.
A operação UnregisterApplication(PeerApplication, PeerApplicationRegistrationType) não pôde ser concluída.The UnregisterApplication(PeerApplication, PeerApplicationRegistrationType) operation could not be completed.
Comentários
Cancelar o registro de a PeerApplication interrompe o ponto de chamada de receber convites de colaboração para ele.Unregistering a PeerApplication stops the calling peer from receiving collaboration invitations for it. Se o cancelamento do registro do aplicativo não tiver sido registrado anteriormente, isso será não operacional.If the application being unregistered was not previously registered, this is a no-op.
Chamar esse método requer um PermissionState de Unrestricted .Calling this method requires a PermissionState of Unrestricted. Esse estado é criado quando a Peer sessão de colaboração começa.This state is created when the Peer collaboration session begins.