你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

InputSchemaMapping Class

Definition

By default, Event Grid expects events to be in the Event Grid event schema. Specifying an input schema mapping enables publishing to Event Grid using a custom input schema. Currently, the only supported type of InputSchemaMapping is 'JsonInputSchemaMapping'.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.InputSchemaMappingTypeConverter))]
public class InputSchemaMapping : Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IInputSchemaMapping
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.InputSchemaMappingTypeConverter))>]
type InputSchemaMapping = class
    interface IInputSchemaMapping
    interface IJsonSerializable
Public Class InputSchemaMapping
Implements IInputSchemaMapping
Inheritance
InputSchemaMapping
Attributes
Implements

Constructors

InputSchemaMapping()

Creates an new InputSchemaMapping instance.

Properties

Type

Type of the custom mapping

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of InputSchemaMapping.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of InputSchemaMapping.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IInputSchemaMapping. Note: the Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IInputSchemaMapping interface is polymorphic, and the precise model class that will get deserialized is determined at runtime based on the payload.

FromJsonString(String)

Creates a new instance of InputSchemaMapping, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of InputSchemaMapping into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to