OneDriveConnector.CreateShareLinkAsync Method

Definition

Create a shareable link to a file.

public System.Threading.Tasks.Task<string> CreateShareLinkAsync(string filePath, string type = "view", string scope = "anonymous", System.Threading.CancellationToken cancellationToken = default);
abstract member CreateShareLinkAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.CreateShareLinkAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function CreateShareLinkAsync (filePath As String, Optional type As String = "view", Optional scope As String = "anonymous", Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

Parameters

filePath
String

Path to the file.

type
String

Type of link to create.

scope
String

Scope of the link.

cancellationToken
CancellationToken

The CancellationToken to monitor for cancellation requests. The default is None.

Returns

Shareable link.

Implements

Applies to