MarkdownReader.ReadAsync Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
| Nazwa | Opis |
|---|---|
| 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, String, String, CancellationToken)
- Źródło:
- MarkdownReader.cs
Odczytuje plik i konwertuje go na .IngestionDocument
public override System.Threading.Tasks.Task<Microsoft.Extensions.DataIngestion.IngestionDocument> ReadAsync(System.IO.FileInfo source, string identifier, string? mediaType = default, System.Threading.CancellationToken cancellationToken = default);
override this.ReadAsync : System.IO.FileInfo * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Extensions.DataIngestion.IngestionDocument>
Public Overrides 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.
Dotyczy
ReadAsync(Stream, String, String, CancellationToken)
- Źródło:
- MarkdownReader.cs
Odczytuje strumień i konwertuje go na element IngestionDocument.
public override System.Threading.Tasks.Task<Microsoft.Extensions.DataIngestion.IngestionDocument> ReadAsync(System.IO.Stream source, string identifier, string mediaType, System.Threading.CancellationToken cancellationToken = default);
override this.ReadAsync : System.IO.Stream * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Extensions.DataIngestion.IngestionDocument>
Public Overrides 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.