Table of Contents

Enum ShareType

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

Link types

public enum ShareType

Fields

[EnumMember(Value = "addressBar")] AddressBar = 6

Creates the default link that is shown in the browser address bars for newly created files. Note: Only available in OneDrive for Business and SharePoint. The organization admin configures whether this link type is supported, and what features are supported by this link type.

[EnumMember(Value = "adminDefault")] AdminDefault = 7

Creates the default link to the driveItem as determined by the administrator of the organization. Note: Only available in OneDrive for Business and SharePoint. The policy is enforced for the organization by the admin

[EnumMember(Value = "blocksDownload")] BlocksDownload = 4

Creates a read-only link that blocks download to the driveItem. Note: This option is only available for files in OneDrive for Business and SharePoint.

[EnumMember(Value = "createOnly")] CreateOnly = 5

Creates an upload-only link to the driveItem. Note: This option is only available for folders in OneDrive for Business and SharePoint.

[EnumMember(Value = "edit")] Edit = 2

Creates an read-write link to the driveItem. Note: This option is only available for files in OneDrive for Business and SharePoint.

[EnumMember(Value = "embed")] Embed = 3

Creates an embeddable link to the item.

[EnumMember(Value = "review")] Review = 1

Creates a review link to the driveItem. Note: This option is only available for files in OneDrive for Business and SharePoint.

[EnumMember(Value = "view")] View = 0

Creates a read-only link to the driveItem.