Back to Devexpress

UploadControlAzureSettings Class

aspnet-devexpress-dot-web-052cbaa0.md

latest4.3 KB
Original Source

UploadControlAzureSettings Class

Contains settings that allow you to connect the Upload Control to Azure.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class UploadControlAzureSettings :
    UploadControlUploadStorageSettingsBase
vb
Public Class UploadControlAzureSettings
    Inherits UploadControlUploadStorageSettingsBase

The following members return UploadControlAzureSettings objects:

LibraryRelated API Members
ASP.NET Web Forms ControlsASPxHtmlEditorUploadSettingsBase.AzureSettings
ASPxUploadControl.AzureSettings
ASP.NET MVC ExtensionsHtmlEditorFileSaveSettings.AzureSettings
UploadControlBinderSettings.AzureSettings
UploadControlSettings.AzureSettings

Remarks

Follow the steps below to connect the Upload Control to Azure:

  1. Call the RegisterAzure method in the Global.asax file.
  2. Set the Upload Control’s UploadStorage property to Azure.
  3. Assign an Azure account’s name to the AzureSettings.AccountName property.
  4. 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:

cs
void Application_Start(object sender, EventArgs e) {
    DevExpress.Web.AccountManager.RegisterAzure("YourAzureAccount", "YourStorageName", "YourAccessKey");
}
aspx
<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.

Implements

IStateManager

IPropertiesOwner

Inheritance

Object StateManager PropertiesBase UploadControlUploadStorageSettingsBase UploadControlAzureSettings

See Also

Azure Blob Storage REST API

Azure Storage client libraries for .NET

Azure Blob Storage client library for .NET

Cloud Storage Account Management

UploadControlAzureSettings Members

DevExpress.Web Namespace