Język

IngestionDocumentReader.ReadAsync Metoda

Definicja

Przeciążenia

Nazwa Opis
ReadAsync(FileInfo, CancellationToken)

Odczytuje plik i konwertuje go na .IngestionDocument

ReadAsync(FileInfo, String, String, CancellationToken)

Odczytuje plik i konwertuje go na .IngestionDocument

ReadAsync(Stream, String, String, CancellationToken)

Odczytuje strumień i konwertuje go na element IngestionDocument.

ReadAsync(FileInfo, CancellationToken)

Źródło:
IngestionDocumentReader.cs

Odczytuje plik i konwertuje go na .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)

Parametry

source
FileInfo

Plik do odczytania.

cancellationToken
CancellationToken

Token do monitorowania żądań anulowania.

Zwraca

Zadanie reprezentujące operację odczytu asynchronicznego.

Wyjątki

Parametr source ma wartość null.

Dotyczy

ReadAsync(FileInfo, String, String, CancellationToken)

Źródło:
IngestionDocumentReader.cs

Odczytuje plik i konwertuje go na .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)

Parametry

source
FileInfo

Plik do odczytania.

identifier
String

Unikatowy identyfikator dokumentu.

mediaType
String

Typ nośnika pliku.

cancellationToken
CancellationToken

Token do monitorowania żądań anulowania.

Zwraca

Zadanie reprezentujące operację odczytu asynchronicznego.

Wyjątki

source lub identifier jest lub jest null pusty.

Dotyczy

ReadAsync(Stream, String, String, CancellationToken)

Źródło:
IngestionDocumentReader.cs

Odczytuje strumień i konwertuje go na element 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)

Parametry

source
Stream

Strumień do odczytania.

identifier
String

Unikatowy identyfikator dokumentu.

mediaType
String

Typ nośnika zawartości.

cancellationToken
CancellationToken

Token do monitorowania żądań anulowania.

Zwraca

Zadanie reprezentujące operację odczytu asynchronicznego.

Dotyczy