DocumentPlugin.ReadTextAsync(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.
Read all text from a document, using the filePath argument as the file path.
[Microsoft.SemanticKernel.KernelFunction]
public System.Threading.Tasks.Task<string> ReadTextAsync(string filePath, System.Threading.CancellationToken cancellationToken = default);
[<Microsoft.SemanticKernel.KernelFunction>]
member this.ReadTextAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function ReadTextAsync (filePath As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)
Parameters
- filePath
- String
- cancellationToken
- CancellationToken
Returns
- Attributes