Language

InvokeResponse<TBody> Class

Definition

Represents a strongly-typed response returned from an invocation handler.

public class InvokeResponse<TBody> : Microsoft.Teams.Apps.InvokeResponse
type InvokeResponse<'Body> = class
    inherit InvokeResponse
Public Class InvokeResponse(Of TBody)
Inherits InvokeResponse

Type Parameters

TBody

The type of the response body.

Inheritance
InvokeResponse<TBody>

Remarks

The strongly-typed Body property provides compile-time type safety while maintaining a single storage location through the base class. Both the typed and untyped Body properties access the same underlying body.

Constructors

Name Description
InvokeResponse<TBody>(Int32, TBody)

Represents a strongly-typed response returned from an invocation handler.

Properties

Name Description
Body

Gets or sets the strongly-typed response body. This property shadows the base class Body property but uses the same underlying storage, ensuring no synchronization issues between typed and untyped access.

Status

Status code of the response.

(Inherited from InvokeResponse)

Applies to