TeamsActivityInput 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.
Base type for outbound (outgoing) Teams activities constructed by builders and sent by the API clients.
public class TeamsActivityInput : Microsoft.Teams.Core.Schema.CoreActivityInput
type TeamsActivityInput = class
inherit CoreActivityInput
Public Class TeamsActivityInput
Inherits CoreActivityInput
- Inheritance
- Derived
Remarks
This is the Teams-layer counterpart to CoreActivityInput. It is the serialized outbound shape and carries only sender-supplied content (entities, channel data, suggested actions). Transport routing (service url, conversation id) is supplied explicitly to the API clients.
Properties
| Name | Description |
|---|---|
| ChannelData |
Gets or sets the Teams-specific channel data associated with this outbound activity. |
| Entities |
Gets or sets the entities associated with this activity. |
| Id |
Gets or sets the unique identifier for the activity. (Inherited from CoreActivityInput) |
| Properties |
Gets the extension data dictionary for storing additional properties not defined in the schema. (Inherited from CoreActivityInput) |
| Recipient |
Gets or sets the recipient account for this activity. Populated when the send targets a specific recipient (for example, a targeted message visible only to the inbound sender). (Inherited from CoreActivityInput) |
| ReplyToId |
Gets or sets the id of the activity this activity is a reply to. When set, the send is threaded under the referenced activity. (Inherited from CoreActivityInput) |
| SuggestedActions |
Gets or sets the suggested actions for the message. |
| Type |
Gets or sets the type of the activity. See ActivityType for common values. (Inherited from CoreActivityInput) |
Methods
| Name | Description |
|---|---|
| ToJson() |
Serializes the current activity to a JSON string using the outbound Teams serializer context. |
| ToJson<T>(JsonTypeInfo<T>) |
Serializes the current activity to a JSON string using the specified JsonTypeInfo<T> for source-generated serialization. (Inherited from CoreActivityInput) |