SkillDialog.OnValidateActivity(Activity) 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.
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
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.