Table of Contents

Interface ISharingLink

Namespace
PnP.Core.Model.Security
Assembly
PnP.Core.dll

The sharingLink resource groups link-related data items into a single structure.

public interface ISharingLink

Properties

If true then the user can only use this link to view the item on the web, and cannot use it to download the contents of the item. Only for OneDrive for Business and SharePoint.

bool PreventsDownload { get; }

Property Value

bool

The scope of the link represented by this permission. Value anonymous indicates the link is usable by anyone, organization indicates the link is only usable for users signed into the same tenant.

ShareScope Scope { get; }

Property Value

ShareScope

The type of the link created.

ShareType Type { get; }

Property Value

ShareType

For embed links, this property contains the HTML code for an iframe element that will embed the item in a webpage.

string WebHtml { get; }

Property Value

string

A URL that opens the item in the browser on the OneDrive website.

string WebUrl { get; }

Property Value

string