FacebookClientWrapper.PassThreadControlAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sends the pass_thread_control webhook event to 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
The ID of the target app to pass control to.
- userId
- String
The sender user ID.
- message
- String
An optional message for the metadata parameter.
- cancellationToken
- CancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
true
if the operation succeeded; otherwise, false
.
Exceptions
targetAppId
or userId
is null.