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

AuthenticationManager.GetSharePointOnlineAuthenticatedContextTenant Method

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

Returns a SharePointOnline ClientContext object

Namespace:OfficeDevPnP.Core
Assembly: OfficeDevPnP.Core.dll

Syntax

public ClientContext GetSharePointOnlineAuthenticatedContextTenant(String siteUrl, String tenantUser, String tenantUserPassword)

Parameters

siteUrl

  Type: System.String
  Site for which the ClientContext object will be instantiated

tenantUser

  Type: System.String
  User to be used to instantiate the ClientContext object

tenantUserPassword

  Type: System.String
  Password of the user used to instantiate the ClientContext object

Return Value

Type: ClientContext
ClientContext to be used by CSOM code

See also

© 2018 Microsoft