Aracılığıyla paylaş


AnalyzeDocumentContent Class

Definition

Document analysis parameters.

public class AnalyzeDocumentContent : System.ClientModel.Primitives.IJsonModel<Azure.AI.DocumentIntelligence.AnalyzeDocumentContent>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.DocumentIntelligence.AnalyzeDocumentContent>
type AnalyzeDocumentContent = class
    interface IJsonModel<AnalyzeDocumentContent>
    interface IPersistableModel<AnalyzeDocumentContent>
Public Class AnalyzeDocumentContent
Implements IJsonModel(Of AnalyzeDocumentContent), IPersistableModel(Of AnalyzeDocumentContent)
Inheritance
AnalyzeDocumentContent
Implements

Constructors

AnalyzeDocumentContent()

Initializes a new instance of AnalyzeDocumentContent.

Properties

Base64Source

Base64 encoding of the document to analyze. Either urlSource or base64Source must be specified.

To assign a byte[] to this property use FromBytes(Byte[]). The byte[] will be serialized to a Base64 encoded string.

Examples:

  • BinaryData.FromBytes(new byte[] { 1, 2, 3 }): Creates a payload of "AQID".

UrlSource

Document URL to analyze. Either urlSource or base64Source must be specified.

Explicit Interface Implementations

IJsonModel<AnalyzeDocumentContent>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<AnalyzeDocumentContent>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AnalyzeDocumentContent>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AnalyzeDocumentContent>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<AnalyzeDocumentContent>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to