InvokeResponse<TBody> Class
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.
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
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) |