FacebookClientWrapper.PassThreadControlAsync Methode

Definition

Schickt das pass_thread_control Webhook-Event an 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)

Parameter

targetAppId
String

Die ID der Ziel-App, an die die Kontrolle übergeben wird.

userId
String

Die Absender-Benutzer-ID.

message
String

Eine optionale Nachricht für den Metadatenparameter.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um eine Kündigungsbenachrichtigung zu erhalten.

Gibt zurück

truewenn der Vorgang erfolgreich war; andernfalls . false

Ausnahmen

targetAppId oder userId ist NULL.

Gilt für: