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

AuthenticationManager.GetNetworkCredentialAuthenticatedContext Method

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

Returns a SharePoint on-premises / SharePoint Online Dedicated ClientContext object

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

Syntax

public ClientContext GetNetworkCredentialAuthenticatedContext(String siteUrl, String user, SecureString password, String domain)

Parameters

siteUrl

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

user

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

password

  Type: System.Security.SecureString
  Password (SecureString) of the user used to instantiate the ClientContext object

domain

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

Return Value

Type: ClientContext
ClientContext to be used by CSOM code

See also

© 2018 Microsoft