SalimAzureBlobAPI/SalimAzureAPI/AzureBlobManager.cs
/// <summary>
/// Creates the container in Azure blob storage. 
/// This really shouldn't need to happen once a system has been established.
/// Should call DoesContainerExist to see if it exists before calling this method.
/// </summary>
/// <param name="containerName">Name of the container.</param>
/// <returns>True if container was created successfully; false otherwise</returns>
Creates the container in Azure blob storage.
This really shouldn't need to happen once a system has been established.
Should call DoesContainerExist to see if it exists before calling this method.
Creates the container in Azure blob storage . This really shouldn ' t need to happen once a system has been established . Should call DoesContainerExist to see if it exists before calling this method .
public bool CreateContainer(string containerName)
        {
            return ExecuteWithExceptionHandlingAndReturnValue(
                    () =>
                    {
                        CloudBlobContainer container = _blobClient.GetContainerReference(containerName);
                        container.Create();
                    });
        }
public bool CreateContainer ( string containerName ) { return ExecuteWithExceptionHandlingAndReturnValue ( ( ) => { CloudBlobContainer container = _blobClient . GetContainerReference ( containerName ) ; container . Create ( ) ; } ) ; }
Creates the container in Azure blob storage.
Creates the container in Azure blob storage .
True if container was created successfully; false otherwise
True if container was created successfully ; false otherwise
containerName
string
Name of the container.
Name of the container .