SharePoint File System Provider
The SharePoint file system provider (SharePointFileSystemProvider) allows you to connect 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=...");
Set the ASPxFileManager.ProviderType property to FileManagerProviderType.SharePoint to specify SharePoint as the file system provider type used to manage files.
<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.