Lingua

FacebookClientWrapper.PassThreadControlAsync Metodo

Definizione

Invia l'evento webhook pass_thread_control su 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)

Parametri

targetAppId
String

L'ID dell'app target a cui passare il controllo.

userId
String

L'ID utente del mittente.

message
String

Un messaggio opzionale per il parametro metadati.

cancellationToken
CancellationToken

Token di annullamento che può essere utilizzato da altri oggetti o thread per ricevere un avviso di annullamento.

Valori restituiti

true se l'operazione ha avuto esito positivo; in caso contrario, false.

Eccezioni

targetAppId o userId è null.

Si applica a