SharePoint File System Provider
The SharePoint file system provider (SharePointFileSystemProvider) allows you to connect the ASPxFileManager to a SharePoint document library.
Connect File Manager to SharePoint
Use the AccountManager.RegisterOneDrive method and the OneDriveAccount object to register the SharePoint account in the global.asax file.
NOTE
The SharePoint file system provider uses OneDrive APIs to interact with SharePoint.
Global.asax file:
AccountManager.RegisterOneDrive("FileManagerOneDriveAccount", "f49c387c-1c25-4f27-855b-dfd3fd3", "..+SKN3n5H0/KZVb6c=...");
To specify which file system provider type is used to manage files, set the ASPxFileManager.ProviderType property to FileManagerProviderType.SharePoint.
<dx:ASPxFileManager ID="FileManager" ProviderType="SharePoint">
...
</dx:ASPxFileManager>
Use the ASPxFileManager.SettingsSharePoint property to specify SharePoint account settings.
<dx:ASPxFileManager ID="FileManager" >
//...
<SettingsSharePoint
AccountName="FileManagerSharePointAccount"
TokenEndpoint="https://login.microsoftonline.com/46ec2686-1d80-6e0r-81de-57aec8e4672f/oauth2/token"
RedirectUri="http://localhost"
SiteName="DemoSite"
SiteHostName="myteam.sharepoint.com" />
</dx:ASPxFileManager>
Use the ASPxFileManager.CloudProviderRequest event to handle every request to SharePoint.
Feedback