PeerContact.Unsubscribe Método

Definição

Remove uma assinatura no PeerContact e, como resultado, o par de chamada não receberá mais eventos PeerCollaboration associados ao PeerContact.Removes a subscription to the PeerContact and as a result the calling peer no longer receives PeerCollaboration events associated with the PeerContact.

public:
 virtual void Unsubscribe();
public virtual void Unsubscribe ();
abstract member Unsubscribe : unit -> unit
override this.Unsubscribe : unit -> unit
Public Overridable Sub Unsubscribe ()

Exceções

Este objeto PeerContact foi descartado.This PeerContact object has been disposed.

Comentários

Se o ponto de chamada não for assinado para o PeerContact especificado, o resultado será não operacional.If the calling peer is not subscribed to the PeerContact specified the result is a no-op. Um ponto de chamada pode verificar se ele se inscreveu em eventos para o par identificado por essa instância com a IsSubscribed propriedade.A calling peer can verify whether it is subscribed to events for the peer identified by this instance with the IsSubscribed property.

Chamar esse método requer um PermissionState de Unrestricted .Calling this method requires a PermissionState of Unrestricted. Esse estado é criado quando a sessão de colaboração do par é iniciada.This state is created when the peer collaboration session begins.

Aplica-se a

Confira também