语言

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 为 null。

适用于