CoreActivityJsonContext 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.
JSON source generator context for Core activity types. This enables AOT-compatible and reflection-free JSON serialization.
[System.Text.Json.Serialization.JsonSerializable(typeof(Microsoft.Teams.Core.Schema.CoreActivity))]
[System.Text.Json.Serialization.JsonSerializable(typeof(Microsoft.Teams.Core.Schema.CoreActivityInput))]
[System.Text.Json.Serialization.JsonSerializable(typeof(Microsoft.Teams.Core.Schema.ChannelData))]
[System.Text.Json.Serialization.JsonSerializable(typeof(Microsoft.Teams.Core.Schema.Conversation))]
[System.Text.Json.Serialization.JsonSerializable(typeof(Microsoft.Teams.Core.Schema.ChannelAccount))]
[System.Text.Json.Serialization.JsonSerializable(typeof(Microsoft.Teams.Core.Schema.ExtendedPropertiesDictionary))]
[System.Text.Json.Serialization.JsonSerializable(typeof(System.Text.Json.JsonElement))]
[System.Text.Json.Serialization.JsonSerializable(typeof(System.Text.Json.Nodes.JsonNode))]
[System.Text.Json.Serialization.JsonSerializable(typeof(System.Int32))]
[System.Text.Json.Serialization.JsonSerializable(typeof(System.Boolean))]
[System.Text.Json.Serialization.JsonSerializable(typeof(System.Int64))]
[System.Text.Json.Serialization.JsonSerializable(typeof(System.Double))]
[System.Text.Json.Serialization.JsonSourceGenerationOptions(DefaultIgnoreCondition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, PropertyNamingPolicy=System.Text.Json.Serialization.JsonKnownNamingPolicy.CamelCase, WriteIndented=true)]
public class CoreActivityJsonContext : System.Text.Json.Serialization.JsonSerializerContext
[<System.Text.Json.Serialization.JsonSerializable(typeof(Microsoft.Teams.Core.Schema.CoreActivity))>]
[<System.Text.Json.Serialization.JsonSerializable(typeof(Microsoft.Teams.Core.Schema.CoreActivityInput))>]
[<System.Text.Json.Serialization.JsonSerializable(typeof(Microsoft.Teams.Core.Schema.ChannelData))>]
[<System.Text.Json.Serialization.JsonSerializable(typeof(Microsoft.Teams.Core.Schema.Conversation))>]
[<System.Text.Json.Serialization.JsonSerializable(typeof(Microsoft.Teams.Core.Schema.ChannelAccount))>]
[<System.Text.Json.Serialization.JsonSerializable(typeof(Microsoft.Teams.Core.Schema.ExtendedPropertiesDictionary))>]
[<System.Text.Json.Serialization.JsonSerializable(typeof(System.Text.Json.JsonElement))>]
[<System.Text.Json.Serialization.JsonSerializable(typeof(System.Text.Json.Nodes.JsonNode))>]
[<System.Text.Json.Serialization.JsonSerializable(typeof(System.Int32))>]
[<System.Text.Json.Serialization.JsonSerializable(typeof(System.Boolean))>]
[<System.Text.Json.Serialization.JsonSerializable(typeof(System.Int64))>]
[<System.Text.Json.Serialization.JsonSerializable(typeof(System.Double))>]
[<System.Text.Json.Serialization.JsonSourceGenerationOptions(DefaultIgnoreCondition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, PropertyNamingPolicy=System.Text.Json.Serialization.JsonKnownNamingPolicy.CamelCase, WriteIndented=true)>]
type CoreActivityJsonContext = class
inherit JsonSerializerContext
interface IJsonTypeInfoResolver
Public Class CoreActivityJsonContext
Inherits JsonSerializerContext
- Inheritance
-
CoreActivityJsonContext
- Attributes
- Implements
Constructors
| Name | Description |
|---|---|
| CoreActivityJsonContext() | System.Text.Json.Serialization.JsonSerializerContext.#ctor |
| CoreActivityJsonContext(JsonSerializerOptions) | Creates an instance of JsonSerializerContext and binds it with the indicated JsonSerializerOptions. |
Properties
| Name | Description |
|---|---|
| Boolean |
Defines the source generated JSON serialization contract metadata for a given type. |
| ChannelAccount |
Defines the source generated JSON serialization contract metadata for a given type. |
| ChannelData |
Defines the source generated JSON serialization contract metadata for a given type. |
| Conversation |
Defines the source generated JSON serialization contract metadata for a given type. |
| CoreActivity |
Defines the source generated JSON serialization contract metadata for a given type. |
| CoreActivityInput |
Defines the source generated JSON serialization contract metadata for a given type. |
| Default |
The default JsonSerializerContext associated with a default JsonSerializerOptions instance. |
| Double |
Defines the source generated JSON serialization contract metadata for a given type. |
| ExtendedPropertiesDictionary |
Defines the source generated JSON serialization contract metadata for a given type. |
| GeneratedSerializerOptions |
The source-generated options associated with this context. |
| Int32 |
Defines the source generated JSON serialization contract metadata for a given type. |
| Int64 |
Defines the source generated JSON serialization contract metadata for a given type. |
| JsonElement |
Defines the source generated JSON serialization contract metadata for a given type. |
| JsonNode |
Defines the source generated JSON serialization contract metadata for a given type. |
| NullableBoolean |
Defines the source generated JSON serialization contract metadata for a given type. |
| Object |
Defines the source generated JSON serialization contract metadata for a given type. |
| String |
Defines the source generated JSON serialization contract metadata for a given type. |
| Uri |
Defines the source generated JSON serialization contract metadata for a given type. |
Methods
| Name | Description |
|---|---|
| GetTypeInfo(Type) | Gets metadata for the specified type. |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IJsonTypeInfoResolver.GetTypeInfo(Type, JsonSerializerOptions) | |