Taal

FacebookClientWrapper.PassThreadControlAsync Methode

Definitie

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

Parameters

targetAppId
String

De ID van de doel-app om de controle aan over te dragen.

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

targetAppId of userId null is.

Van toepassing op