CloudDrivePlugin.UploadFileAsync(String, 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.
Upload a small file to OneDrive (less than 4MB).
[Microsoft.SemanticKernel.KernelFunction]
public System.Threading.Tasks.Task UploadFileAsync(string filePath, string destinationPath, System.Threading.CancellationToken cancellationToken = default);
[<Microsoft.SemanticKernel.KernelFunction>]
member this.UploadFileAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function UploadFileAsync (filePath As String, destinationPath As String, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- filePath
- String
The path to the file.
- destinationPath
- String
The remote path to store the file.
- cancellationToken
- CancellationToken
A cancellation token to observe while waiting for the task to complete.
Returns
- Attributes