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

ClientContextExtensions.Clone Method

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

Clones a ClientContext object while "taking over" the security context of the existing ClientContext instance

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

Syntax

public static ClientContext Clone(this ClientRuntimeContext clientContext, Uri siteUrl)

Parameters

clientContext

  Type: Microsoft.SharePoint.Client.ClientRuntimeContext
  ClientContext to be cloned

siteUrl

  Type: System.Uri
  Site url to be used for cloned ClientContext

Return Value

Type: ClientContext
A ClientContext object created for the passed site url

See also

© 2018 Microsoft