Click or drag to resize

BlobContainer Class

Wraps a BlobContainerClient to facilitate access to Blob storage.
Inheritance Hierarchy
SystemObject
  InnerDrive.AzureBlobContainer

Namespace: InnerDrive.Azure
Assembly: InnerDrive.Azure (in InnerDrive.Azure.dll) Version: 5.0.8475.0
Syntax
C#
public class BlobContainer

The BlobContainer type exposes the following members.

Constructors
 NameDescription
Public methodBlobContainer(IConfiguration, String, Boolean) Creates a new instance of BlobContainer.
Public methodBlobContainer(ISecretProvider, String, Boolean) Creates a new instance of BlobContainer.
Public methodBlobContainer(String, String, Boolean) Creates a new instance of BlobContainer.
Public methodBlobContainer(IConfiguration, String, String, Boolean) Creates a new instance of BlobContainer.
Public methodBlobContainer(ISecretProvider, String, String, Boolean) Creates a new instance of BlobContainer.
Top
Properties
 NameDescription
Public propertyNames Gets the list of blobs in the current BlobContainerClient
Top
Methods
 NameDescription
Public methodAdd(String, String) Uploads the contents of a file to the Blob container.
Public methodAdd(String, Byte, String) Adds information to the Blob container with a designated content type.
Public methodBlobClient Gets the BlobClient(String) for a particular blobName
Public methodDelete Removes information from the Blob container.
Public methodDeleteContainer Deletes the Blob container
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetAccessTier Gets a blob's AccessTier
Public methodGetBytes Gets the contents of the Blob container as a Byte array.
Public methodGetContentType Gets the MIME content type of a blob container
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetPermissions Gets the access policy for the blob container.
Public methodGetProperties Gets the properties of a blob container
Public methodGetStream Sends the contents of the Blob container to a Stream
Public methodGetText Gets the contents of the Blob container as a string.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodSetAccessTier Sets a blob's AccessTier
Public methodSetPermissions Sets permissions for the container
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Public fieldStatic memberDefaultContentType Gets the default content type used when adding data to a blob container.
Public fieldStatic memberDefaultStorageConnectionStringSettingKey Gets the default configuration key containing the storage connection string
Top
Remarks
The default storage setting configuration key is innerDriveAzure:storageConnectionString. To use this class with the default configuration, add this to your appSettings.json file:
C#
{
   "innerDriveAzure": {
      "storageConnectionString": "super secret connection string"
   }
}
See Also