AdaptiveCardResponse.CreateMessageResponse(String, Int32) 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.
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).