OneDriveConnector.CreateShareLinkAsync 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 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.