Taal

LoggingDocumentExtractionClient.ExtractAsync Methode

Definitie

Hiermee wordt een canoniek document geëxtraheerd zonder een afzonderlijk pagina- of observatieprotocol te vereisen.

public override System.Threading.Tasks.Task<Microsoft.Extensions.Documents.ExtractionDocument> ExtractAsync(System.IO.Stream document, string identifier, string mediaType, Microsoft.Extensions.DocumentExtraction.DocumentExtractionOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
override this.ExtractAsync : System.IO.Stream * string * string * Microsoft.Extensions.DocumentExtraction.DocumentExtractionOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Extensions.Documents.ExtractionDocument>
Public Overrides Function ExtractAsync (document As Stream, identifier As String, mediaType As String, Optional options As DocumentExtractionOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ExtractionDocument)

Parameters

document
Stream

De brondocumentstroom, die eigendom blijft van de beller.

identifier
String

De id voor het resulterende document documenten.

mediaType
String

Het bronmediatype.

options
DocumentExtractionOptions

Optionele onderdrukkingen per aanroep. Providers moeten niet-ondersteunde expliciete instellingen weigeren.

cancellationToken
CancellationToken

Het annuleringstoken.

Retouren

Een taak die het geëxtraheerde document van de aanroeper produceert.

Van toepassing op