Langue

FacebookClientWrapper.PassThreadControlAsync Méthode

Définition

Envoie l’événement pass_thread_control webhook sur Facebook.

public virtual System.Threading.Tasks.Task<bool> PassThreadControlAsync(string targetAppId, string userId, string message, System.Threading.CancellationToken cancellationToken);
abstract member PassThreadControlAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.PassThreadControlAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overridable Function PassThreadControlAsync (targetAppId As String, userId As String, message As String, cancellationToken As CancellationToken) As Task(Of Boolean)

Paramètres

targetAppId
String

L’ID de l’application cible à qui transférer le contrôle.

userId
String

L’identifiant utilisateur de l’expéditeur.

message
String

Un message optionnel pour le paramètre de métadonnées.

cancellationToken
CancellationToken

Jeton d’annulation qui peut être utilisé par d’autres objets ou threads pour recevoir une notification d’annulation.

Retours

true si l’opération a réussi ; sinon, false.

Exceptions

targetAppId ou userId a la valeur Null.

S’applique à