AdaptiveCardInvokeResponseFactory.TryValidateSearchInvokeValue Method

Definition

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.

Applies to