다음을 통해 공유


AvroFormatSerialization Class

Definition

Describes how data from an input is serialized or how data is serialized when written to an output in Avro format.

public class AvroFormatSerialization : Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsDataSerialization
type AvroFormatSerialization = class
    inherit StreamAnalyticsDataSerialization
Public Class AvroFormatSerialization
Inherits StreamAnalyticsDataSerialization
Inheritance
AvroFormatSerialization

Constructors

AvroFormatSerialization()

Initializes a new instance of AvroFormatSerialization.

Properties

Properties

The properties that are associated with the Avro serialization type. Required on PUT (CreateOrReplace) requests.

To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"): Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""): Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }): Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"): Creates a payload of { "key": "value" }.

Applies to