Skip to content

Files

Latest commit

826076c · Jun 19, 2017

History

History
36 lines (24 loc) · 1.09 KB

Microsoft.SharePoint.Client.ExternalSharingExtensions.f6e910ee.md

File metadata and controls

36 lines (24 loc) · 1.09 KB

ExternalSharingExtensions.GetObjectSharingSettingsForDocument Method

Get current sharing settings for document and load list of users it has been shared automatically.

Namespace: Microsoft.SharePoint.Client
Assembly: OfficeDevPnP.Core.dll

Syntax

public static ObjectSharingSettings GetObjectSharingSettingsForDocument(this Web web, String urlToDocument, Boolean useSimplifiedPolicies = True)

Parameters

web

  Type: Microsoft.SharePoint.Client.Web
  Web for the context

urlToDocument

  Type: System.String
  Full URL to the file which is shared

(optional) useSimplifiedPolicies

  Type: System.Boolean
  Boolean value indicating whether to use the SharePoint simplified roles (Edit, View).

Return Value

Type: ObjectSharingSettings
A ObjectSharingSettings object

See also