Back to Devexpress

Azure File System Provider

aspnet-17780-components-file-management-file-manager-concepts-file-system-providers-azure-file-system-provider.md

latest2.6 KB
Original Source

Azure File System Provider

  • Jun 21, 2024

Set the ASPxFileManager.ProviderType property to Azure to allow ASPxFileManager to operate with files contained in the Azure Cloud Services.

The Azure file system provider is an instance of the AzureFileSystemProvider class, which defines methods to get the file and folder hierarchy, and methods to edit file manager items.

Provider Settings

Use the AccountManager.RegisterAzure method to register an Azure account in the global.asax file and then specify the following settings of the ASPxFileManager.SettingsAzure property to connect ASPxFileManager to Azure cloud storage:

ASPxFileManager allows you to perform custom actions on every request to the Azure cloud storage. To do this, handle the ASPxFileManager.CloudProviderRequest event.

Example

aspx
<dx:ASPxFileManager ID="FileManager" runat="server" ProviderType="Azure">
    <SettingsAzure AccountName="Azure1" ContainerName="uploadcontainer" />
</dx:ASPxFileManager>

Global.asax:

csharp
void Application_Start(object sender, EventArgs e) {
    DevExpress.Web.AccountManager.RegisterAzure("Azure1", "StorageName1", "AccessKey1");
}

See Also

File System Providers

How to use Blob Storage from .NET

Storage Services REST API Reference

Storage Client Library Reference

How to Create a Storage Account