Language

AdaptiveCardResponse.CreateMessageResponse(String, Int32) Method

Definition

Creates an InvokeResponse<TBody> with a message response.

public static Microsoft.Teams.Apps.InvokeResponse<Microsoft.Teams.Apps.AdaptiveCardResponse> CreateMessageResponse(string message, int statusCode = 200);
static member CreateMessageResponse : string * int -> Microsoft.Teams.Apps.InvokeResponse<Microsoft.Teams.Apps.AdaptiveCardResponse>
Public Shared Function CreateMessageResponse (message As String, Optional statusCode As Integer = 200) As InvokeResponse(Of AdaptiveCardResponse)

Parameters

message
String

The message to display to the user.

statusCode
Int32

The HTTP status code (default: 200).

Returns

Applies to