Udostępnij przez


FacebookClientWrapper.PassThreadControlAsync Metoda

Definicja

Wysyła zdarzenie elementu webhook pass_thread_control do serwisu 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)

Parametry

targetAppId
String

Identyfikator aplikacji docelowej do przekazania kontroli.

userId
String

Identyfikator użytkownika nadawcy.

message
String

Opcjonalny komunikat dla parametru metadanych.

cancellationToken
CancellationToken

Token odwołania, używany przez inne obiekty lub wątki do otrzymania powiadomienia o anulowaniu.

Zwraca

true jeśli operacja zakończyła się pomyślnie; w przeciwnym razie , false.

Wyjątki

targetAppId lub userId ma wartość null.

Dotyczy