Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security
updates, and technical support.

[ Download Microsoft Edge ](https://go.microsoft.com/fwlink/p/?LinkID=2092881
) [ More info about Internet Explorer and Microsoft Edge
](https://learn.microsoft.com/en-us/lifecycle/faq/internet-explorer-microsoft-
edge)

Table of contents  Exit focus mode

Read in English  Save

Table of contents  Read in English  Save  Print

Twitter  LinkedIn  Facebook  Email

Table of contents

#  SharePointOnlineCredentials members

  * Article 
  * 03/05/2018 

##  In this article

Represents an object that provides credentials to access SharePoint Online
resources.

The [ SharePointOnlineCredentials ](jj164693\(v=office.15\)) type exposes the
following members.

##  Constructors

Â  |  Name  |  Description   
---|---|---  
![Public method](images/jj170449.pubmethod\(office.15\).gif) |  [ SharePointOnlineCredentials ](jj170265\(v=office.15\)) |  Initializes a new instance of the [ SharePointOnlineCredentials ](jj164693\(v=office.15\)) object.   
  
Top

##  Properties

Â  |  Name  |  Description   
---|---|---  
![Public property](images/jj168422.pubproperty\(office.15\).gif) |  [ UserName ](jj170275\(v=office.15\)) |  Gets the user name associated with the credentials that is passed in the [ SharePointOnlineCredentials ](jj170265\(v=office.15\)) constructor.   
  
Top

##  Methods

Â  |  Name  |  Description   
---|---|---  
![Public method](images/jj170449.pubmethod\(office.15\).gif) |  [ GetAuthenticationCookie(Uri) ](jj171624\(v=office.15\)) |  Gets the authentication cookie.   
![Public method](images/jj170449.pubmethod\(office.15\).gif) |  [ GetAuthenticationCookie(Uri, Boolean) ](dn793641\(v=office.15\)) |   
![Public method](images/jj170449.pubmethod\(office.15\).gif) |  [ GetCredential ](jj171410\(v=office.15\)) |  Gets the network credentials with the specified URI and authentication type.   
![Public method](images/jj170449.pubmethod\(office.15\).gif) |  [ ToString ](https://msdn2.microsoft.com/en-us/library/7bxwbwt2) |  (Inherited from [ Object ](https://msdn2.microsoft.com/en-us/library/e5kfa45b) .)   
  
Top

##  Events

Â  |  Name  |  Description   
---|---|---  
![Public event](images/jj275791.pubevent\(office.15\).gif) |  [ ExecutingWebRequest ](dn793643\(v=office.15\)) |   
  
Top

##  See also

####  Reference

[ SharePointOnlineCredentials class ](jj164693\(v=office.15\))

[ Microsoft.SharePoint.Client namespace ](ee544361\(v=office.15\))

* * *

##  Additional resources

[ California Consumer Privacy Act (CCPA) Opt-Out Icon  Your Privacy Choices
](https://aka.ms/yourcaliforniaprivacychoices)

Theme

  * Light 
  * Dark 
  * High contrast 

  *   * [ Previous Versions ](/en-us/previous-versions/)
  * [ Blog ](https://techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog)
  * [ Contribute ](/en-us/contribute/)
  * [ Privacy ](https://go.microsoft.com/fwlink/?LinkId=521839)
  * [ Terms of Use ](/en-us/legal/termsofuse)
  * [ Trademarks ](https://www.microsoft.com/legal/intellectualproperty/Trademarks/)
  * © Microsoft 2024 

##  Additional resources

###  In this article

[ California Consumer Privacy Act (CCPA) Opt-Out Icon  Your Privacy Choices
](https://aka.ms/yourcaliforniaprivacychoices)

Theme

  * Light 
  * Dark 
  * High contrast 

  *   * [ Previous Versions ](/en-us/previous-versions/)
  * [ Blog ](https://techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog)
  * [ Contribute ](/en-us/contribute/)
  * [ Privacy ](https://go.microsoft.com/fwlink/?LinkId=521839)
  * [ Terms of Use ](/en-us/legal/termsofuse)
  * [ Trademarks ](https://www.microsoft.com/legal/intellectualproperty/Trademarks/)
  * © Microsoft 2024