Compartilhar via


ClassifyDocumentContent Class

Definition

Document classification parameters.

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

Constructors

ClassifyDocumentContent()

Initializes a new instance of ClassifyDocumentContent.

Properties

Base64Source

Base64 encoding of the document to classify. 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 classify. Either urlSource or base64Source must be specified.

Explicit Interface Implementations

IJsonModel<ClassifyDocumentContent>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ClassifyDocumentContent>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ClassifyDocumentContent>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ClassifyDocumentContent>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ClassifyDocumentContent>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to