Jaa


SkillDialog.OnValidateActivity(Activity) Method

Definition

Validates the activity sent during ContinueDialogAsync(DialogContext, CancellationToken).

protected virtual bool OnValidateActivity (Microsoft.Bot.Schema.Activity activity);
abstract member OnValidateActivity : Microsoft.Bot.Schema.Activity -> bool
override this.OnValidateActivity : Microsoft.Bot.Schema.Activity -> bool
Protected Overridable Function OnValidateActivity (activity As Activity) As Boolean

Parameters

activity
Activity

The Activity for the current turn of conversation.

Returns

true if the activity is valid, false if not.

Remarks

Override this method to implement a custom validator for the activity being sent during the ContinueDialogAsync(DialogContext, CancellationToken). This method can be used to ignore activities of a certain type if needed. If this method returns false, the dialog will end the turn without processing the activity.

Applies to