CloudDrivePlugin.GetFileContentAsync(String, CancellationToken) Method

Definition

Get the contents of a file stored in a cloud drive.

[Microsoft.SemanticKernel.KernelFunction]
public System.Threading.Tasks.Task<string> GetFileContentAsync(string filePath, System.Threading.CancellationToken cancellationToken = default);
[<Microsoft.SemanticKernel.KernelFunction>]
member this.GetFileContentAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function GetFileContentAsync (filePath As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

Parameters

filePath
String

The path to the file.

cancellationToken
CancellationToken

A cancellation token to observe while waiting for the task to complete.

Returns

A string containing the file content.

Attributes

Applies to