UploadControlAzureSettings Class
Contains settings that allow you to connect the Upload Control to Azure.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Related API Members
The following members return UploadControlAzureSettings objects:
Library | Related API Members |
---|---|
ASP.NET Web Forms Controls | ASPxHtmlEditorUploadSettingsBase.AzureSettings |
ASPxUploadControl.AzureSettings | |
ASP.NET MVC Extensions | HtmlEditorFileSaveSettings.AzureSettings |
UploadControlBinderSettings.AzureSettings | |
UploadControlSettings.AzureSettings |
Remarks
Follow the steps below to connect the Upload Control to Azure:
- Call the RegisterAzure method in the Global.asax file.
- Set the Upload Control’s UploadStorage property to
Azure
. - Assign an Azure account’s name to the AzureSettings.AccountName property.
- Assign a container name to the AzureSettings.ContainerName property. Refer to the following topic for more information: Naming and Referencing Containers, Blobs, and Metadata.
The following example demonstrates how to connect the Upload Control to Azure:
void Application_Start(object sender, EventArgs e) {
DevExpress.Web.AccountManager.RegisterAzure("YourAzureAccount", "YourStorageName", "YourAccessKey");
}
<dx:ASPxUploadControl ID="UploadControl" runat="server" UploadStorage="Azure" ShowUploadButton="True" >
<AzureSettings AccountName="YourAzureAccount" ContainerName="YourContainerName" />
</dx:ASPxUploadControl>
Once the Upload Control uploads a file to cloud storage, you can use the key name of this file to access it. To obtain a file key name, use the FileNameInStorage property of an UploadedFile object.
Inheritance
Object
StateManager
PropertiesBase
UploadControlUploadStorageSettingsBase
UploadControlAzureSettings
See Also