Language

InvokeResponse.Ok Method

Definition

Overloads

Name Description
Ok(Object)

Creates a successful (200) invoke response with the specified body.

Ok<TBody>(TBody)

Creates a successful (200) strongly-typed invoke response with the specified body.

Ok(Object)

Creates a successful (200) invoke response with the specified body.

public static Microsoft.Teams.Apps.InvokeResponse Ok(object? body = default);
static member Ok : obj -> Microsoft.Teams.Apps.InvokeResponse
Public Shared Function Ok (Optional body As Object = Nothing) As InvokeResponse

Parameters

body
Object

The response payload.

Returns

An InvokeResponse with status 200.

Applies to

Ok<TBody>(TBody)

Creates a successful (200) strongly-typed invoke response with the specified body.

public static Microsoft.Teams.Apps.InvokeResponse<TBody> Ok<TBody>(TBody body);
static member Ok : 'Body -> Microsoft.Teams.Apps.InvokeResponse<'Body>
Public Shared Function Ok(Of TBody) (body As TBody) As InvokeResponse(Of TBody)

Type Parameters

TBody

The type of the response body.

Parameters

body
TBody

The response payload.

Returns

An InvokeResponse<TBody> with status 200.

Applies to