FileDocumentRetriever.GetDocumentAsync(String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reads a document using 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)
Parameters
- address
- String
Fully qualified path to a file.
- cancel
- CancellationToken
CancellationToken not used.
Returns
UTF8 decoding of bytes in the file.
Implements
Exceptions
If address is null or whitespace.
with inner expection containing the original exception.