Taal

FacebookClientWrapper.RequestThreadControlAsync Methode

Definitie

Stuurt het request_thread_control webhook-evenement naar 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)

Parameters

userId
String

De afzendergebruikers-ID.

message
String

Een optioneel bericht voor de metadata-parameter.

cancellationToken
CancellationToken

Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om kennisgeving van annulering te ontvangen.

Retouren

true indien de bewerking is geslaagd; anders, false.

Uitzonderingen

userId is nul.

Van toepassing op