語言

FacebookClientWrapper.PassThreadControlAsync 方法

定義

將pass_thread_control webhook 事件傳送到 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)

參數

targetAppId
String

要交接控制權的目標應用程式的 ID。

userId
String

寄件人使用者ID。

message
String

一個可選的元資料參數訊息。

cancellationToken
CancellationToken

一種可被其他物件或執行緒用來接收取消通知的取消標記。

傳回

true若手術成功;否則,。 false

例外狀況

targetAppId 或 userId 為空值。

適用於