Delen via


FacebookClientWrapper.PassThreadControlAsync Methode

Definitie

Hiermee wordt de pass_thread_control webhook-gebeurtenis naar Facebook verzonden.

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 waaraan de besturing moet worden doorgegeven.

userId
String

De gebruikers-id van de afzender.

message
String

Een optioneel bericht voor de metagegevensparameter.

cancellationToken
CancellationToken

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

Retouren

true als de bewerking is geslaagd; anders, false.

Uitzonderingen

targetAppId of userId is null.

Van toepassing op