CloudDrivePlugin.CreateLinkAsync(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.
Create a sharable link to a file stored in a cloud drive.
[Microsoft.SemanticKernel.KernelFunction]
public System.Threading.Tasks.Task<string> CreateLinkAsync(string filePath, System.Threading.CancellationToken cancellationToken = default);
[<Microsoft.SemanticKernel.KernelFunction>]
member this.CreateLinkAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function CreateLinkAsync (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 sharable link.
- Attributes