Table of contents
TOC
Collapse the table of content
Expand the table of content

ClientContextExtensions.GetSiteCollectionContext Method

SharePoint Dev Documents|Last Updated: 5/20/2017
|
1 Contributor

Gets a site collection context for the passed web. This site collection client context uses the same credentials as the passed client context

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

Syntax

public static ClientContext GetSiteCollectionContext(this ClientRuntimeContext clientContext)

Parameters

clientContext

  Type: Microsoft.SharePoint.Client.ClientRuntimeContext
  Client context to take the credentials from

Return Value

Type: ClientContext
A site collection client context object for the site collection

See also

© 2018 Microsoft