FileDocumentRetriever.GetDocumentAsync(String, CancellationToken) Methode

Definition

Liest ein Dokument mithilfe von FileStream.

public System.Threading.Tasks.Task<string> GetDocumentAsync(string address, System.Threading.CancellationToken cancel);
abstract member GetDocumentAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.GetDocumentAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function GetDocumentAsync (address As String, cancel As CancellationToken) As Task(Of String)

Parameter

address
String

Vollqualifizierter Pfad zu einer Datei.

cancel
CancellationToken

CancellationToken nicht verwendet.

Gibt zurück

UTF8-Decodierung von Bytes in der Datei.

Implementiert

Ausnahmen

Wenn die Adresse null oder Leerzeichen ist.

mit innerer Erwartung, die die ursprüngliche Ausnahme enthält.

Gilt für: