FacebookClientWrapper.PassThreadControlAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将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。