Freigeben über


FacebookClientWrapper.RequestThreadControlAsync Methode

Definition

Sendet das request_thread_control Webhookereignis an Facebook.

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

Parameter

userId
String

Die Absenderbenutzer-ID.

message
String

Eine optionale Meldung für den Metadatenparameter.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um Nachricht vom Abbruch zu empfangen.

Gibt zurück

true, wenn die Operation erfolgreich ausgeführt wurde, andernfalls false.

Ausnahmen

userId ist NULL.

Gilt für: