Condividi tramite


DocumentSpan Struct

Definition

Contiguous region of the concatenated content property, specified as an offset and length.

public readonly struct DocumentSpan : System.ClientModel.Primitives.IJsonModel<Azure.AI.DocumentIntelligence.DocumentSpan>, System.ClientModel.Primitives.IJsonModel<object>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.DocumentIntelligence.DocumentSpan>, System.ClientModel.Primitives.IPersistableModel<object>
public class DocumentSpan : System.ClientModel.Primitives.IJsonModel<Azure.AI.DocumentIntelligence.DocumentSpan>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.DocumentIntelligence.DocumentSpan>
type DocumentSpan = struct
    interface IJsonModel<DocumentSpan>
    interface IPersistableModel<DocumentSpan>
    interface IJsonModel<obj>
    interface IPersistableModel<obj>
type DocumentSpan = class
    interface IJsonModel<DocumentSpan>
    interface IPersistableModel<DocumentSpan>
Public Structure DocumentSpan
Implements IJsonModel(Of DocumentSpan), IJsonModel(Of Object), IPersistableModel(Of DocumentSpan), IPersistableModel(Of Object)
Public Class DocumentSpan
Implements IJsonModel(Of DocumentSpan), IPersistableModel(Of DocumentSpan)
Inheritance
DocumentSpan
Inheritance
DocumentSpan
Implements

Constructors

DocumentSpan()

Initializes a new instance of DocumentSpan for deserialization.

Properties

Length

Number of characters in the content represented by the span.

Offset

Zero-based index of the content represented by the span.

Explicit Interface Implementations

IJsonModel<DocumentSpan>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<DocumentSpan>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IJsonModel<Object>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<Object>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DocumentSpan>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DocumentSpan>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<DocumentSpan>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IPersistableModel<Object>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<Object>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<Object>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to