AdaptiveCardInvokeResponseFactory.TryValidateSearchInvokeValue 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 that the Activity.Value contains a valid AdaptiveCardSearchInvokeValue value.
public static bool TryValidateSearchInvokeValue(Microsoft.Agents.Core.Models.IActivity activity, out Microsoft.Agents.Builder.App.AdaptiveCards.AdaptiveCardSearchInvokeValue searchInvokeValue, out Microsoft.Agents.Core.Models.AdaptiveCardInvokeResponse errorResponse);
static member TryValidateSearchInvokeValue : Microsoft.Agents.Core.Models.IActivity * AdaptiveCardSearchInvokeValue * AdaptiveCardInvokeResponse -> bool
Public Shared Function TryValidateSearchInvokeValue (activity As IActivity, ByRef searchInvokeValue As AdaptiveCardSearchInvokeValue, ByRef errorResponse As AdaptiveCardInvokeResponse) As Boolean
Parameters
- activity
- IActivity
The Activity to validate.
- searchInvokeValue
- AdaptiveCardSearchInvokeValue
If successful, the AdaptiveCardSearchInvokeValue instance.
- errorResponse
- AdaptiveCardInvokeResponse
If failed, the AdaptiveCardInvokeResponse to reply with.
Returns
True if Acitivity.Value contains a valid AdaptiveCardSearchInvokeValue.