AdaptiveCardInvokeResponseFactory.TryValidateActionInvokeValue Method

Definition

Validates that the Activity.Value contains a valid AdaptiveCardInvokeValue value.

public static bool TryValidateActionInvokeValue(Microsoft.Agents.Core.Models.IActivity activity, string expectedAction, out Microsoft.Agents.Core.Models.AdaptiveCardInvokeValue actionInvokeValue, out Microsoft.Agents.Core.Models.AdaptiveCardInvokeResponse errorResponse);
static member TryValidateActionInvokeValue : Microsoft.Agents.Core.Models.IActivity * string * AdaptiveCardInvokeValue * AdaptiveCardInvokeResponse -> bool
Public Shared Function TryValidateActionInvokeValue (activity As IActivity, expectedAction As String, ByRef actionInvokeValue As AdaptiveCardInvokeValue, ByRef errorResponse As AdaptiveCardInvokeResponse) As Boolean

Parameters

activity
IActivity

The Activity to validate.

expectedAction
String

The expected AdaptiveCardInvokeValue.Action.Type.

actionInvokeValue
AdaptiveCardInvokeValue

If successful, the AdaptiveCardInvokeValue instance.

errorResponse
AdaptiveCardInvokeResponse

If failed, the AdaptiveCardInvokeResponse to reply with.

Returns

True if Acitivity.Value contains a valid AdaptiveCardInvokeValue.

Applies to