IngestionDocumentReader.ReadAsync Methode

Definition

Überlädt

Name Beschreibung
ReadAsync(FileInfo, CancellationToken)

Liest eine Datei und konvertiert sie in eine IngestionDocument.

ReadAsync(FileInfo, String, String, CancellationToken)

Liest eine Datei und konvertiert sie in eine IngestionDocument.

ReadAsync(Stream, String, String, CancellationToken)

Liest einen Datenstrom und konvertiert ihn in ein IngestionDocument.

ReadAsync(FileInfo, CancellationToken)

Quelle:
IngestionDocumentReader.cs

Liest eine Datei und konvertiert sie in eine IngestionDocument.

public System.Threading.Tasks.Task<Microsoft.Extensions.DataIngestion.IngestionDocument> ReadAsync(System.IO.FileInfo source, System.Threading.CancellationToken cancellationToken = default);
member this.ReadAsync : System.IO.FileInfo * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Extensions.DataIngestion.IngestionDocument>
Public Function ReadAsync (source As FileInfo, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IngestionDocument)

Parameter

source
FileInfo

Die zu lesende Datei.

cancellationToken
CancellationToken

Das Token, das auf Abbruchanforderungen überwacht werden soll.

Gibt zurück

Eine Aufgabe, die den asynchronen Lesevorgang darstellt.

Ausnahmen

source ist null.

Gilt für:

ReadAsync(FileInfo, String, String, CancellationToken)

Quelle:
IngestionDocumentReader.cs

Liest eine Datei und konvertiert sie in eine IngestionDocument.

public virtual System.Threading.Tasks.Task<Microsoft.Extensions.DataIngestion.IngestionDocument> ReadAsync(System.IO.FileInfo source, string identifier, string? mediaType = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ReadAsync : System.IO.FileInfo * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Extensions.DataIngestion.IngestionDocument>
override this.ReadAsync : System.IO.FileInfo * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Extensions.DataIngestion.IngestionDocument>
Public Overridable Function ReadAsync (source As FileInfo, identifier As String, Optional mediaType As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IngestionDocument)

Parameter

source
FileInfo

Die zu lesende Datei.

identifier
String

Der eindeutige Bezeichner für das Dokument.

mediaType
String

Der Medientyp der Datei.

cancellationToken
CancellationToken

Das Token, das auf Abbruchanforderungen überwacht werden soll.

Gibt zurück

Eine Aufgabe, die den asynchronen Lesevorgang darstellt.

Ausnahmen

source oder identifier ist null oder leer.

Gilt für:

ReadAsync(Stream, String, String, CancellationToken)

Quelle:
IngestionDocumentReader.cs

Liest einen Datenstrom und konvertiert ihn in ein IngestionDocument.

public abstract System.Threading.Tasks.Task<Microsoft.Extensions.DataIngestion.IngestionDocument> ReadAsync(System.IO.Stream source, string identifier, string mediaType, System.Threading.CancellationToken cancellationToken = default);
abstract member ReadAsync : System.IO.Stream * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Extensions.DataIngestion.IngestionDocument>
Public MustOverride Function ReadAsync (source As Stream, identifier As String, mediaType As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IngestionDocument)

Parameter

source
Stream

Der zu lesende Datenstrom.

identifier
String

Der eindeutige Bezeichner für das Dokument.

mediaType
String

Der Medientyp des Inhalts.

cancellationToken
CancellationToken

Das Token, das auf Abbruchanforderungen überwacht werden soll.

Gibt zurück

Eine Aufgabe, die den asynchronen Lesevorgang darstellt.

Gilt für: