Class AzureStorageProvider
- Namespace
- Kentico.Xperience.AzureStorage
- Assembly
- Kentico.Xperience.AzureStorage.dll
Helper class for Azure storage provider.
public static class AzureStorageProvider
- Inheritance
-
objectAzureStorageProvider
Fields
Name
Azure storage provider name
public static readonly string Name
Field Value
- string
Methods
Create()
Creates new instance of StorageProvider configured for Azure blob storage.
public static StorageProvider Create()
Returns
Create(string, bool?)
Creates a new instance of StorageProvider configured for Azure Blob storage with the specified container root path and optional public access setting.
public static StorageProvider Create(string customRootPath, bool? publicExternalFolderObject = null)
Parameters
customRootPathstringThe blob container name to use as the root path.
publicExternalFolderObjectbool?Controls whether the blob container allows anonymous public read access. When
true, the container access policy is set toBlob(public read for blobs). Whenfalse, the container access policy is set toNone(private). Whennull, falls back to the globalCMSAzurePublicContainerconfiguration value. Note: public access also requires "Allow Blob anonymous access" to be enabled on the Azure storage account.