StaticActivityTemplate.BindAsync 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.
Gets the activity.
public System.Threading.Tasks.Task<Microsoft.Bot.Schema.Activity> BindAsync (Microsoft.Bot.Builder.Dialogs.DialogContext context, object data = default, System.Threading.CancellationToken cancellationToken = default);
abstract member BindAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.Activity>
override this.BindAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.Activity>
Public Function BindAsync (context As DialogContext, Optional data As Object = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Activity)
Parameters
- context
- DialogContext
The DialogContext for the current turn of conversation.
- data
- Object
Optional, data to bind to. If Null, then dc.State will be used.
- cancellationToken
- CancellationToken
Optional, the CancellationToken for this task.
Returns
Task representing an activity.