Class CredentialedSharePointConnectionInfo
Information used to connect to SharePoint This class is converted to/from JSON and the resulting JSON is encrypted to create the token
Inheritance
System.Object
CredentialedSharePointConnectionInfo
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:AzureFunctionsForSharePoint.Common
Assembly:AzureFunctionsForSharePoint.Common.dll
Syntax
public class CredentialedSharePointConnectionInfo
Properties
| Improve this Doc View SourceClientId
Identifies the container where the config file with the encryption password and salt
Declaration
public string ClientId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Password
The password
Declaration
public string Password { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SiteUrl
The SharePoint site to which this connects
Declaration
public string SiteUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String |
UserName
The username login name
Declaration
public string UserName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceGetEncryptedToken(String, String)
Declaration
public string GetEncryptedToken(string encryptionPassword, string salt)
Parameters
Type | Name | Description |
---|---|---|
System.String | encryptionPassword | |
System.String | salt |
Returns
Type | Description |
---|---|
System.String |
GetSharePointClientContext()
Declaration
public ClientContext GetSharePointClientContext()
Returns
Type | Description |
---|---|
Microsoft.SharePoint.Client.ClientContext |
GetSharePointClientContext(String, String, String)
Declaration
public static ClientContext GetSharePointClientContext(string encryptedToken, string encryptionPassword, string salt)
Parameters
Type | Name | Description |
---|---|---|
System.String | encryptedToken | |
System.String | encryptionPassword | |
System.String | salt |
Returns
Type | Description |
---|---|
Microsoft.SharePoint.Client.ClientContext |