BlobList Event
Fires once for each blob returned when listing blobs.
Syntax
public event OnBlobListHandler OnBlobList; public delegate void OnBlobListHandler(object sender, AzureblobBlobListEventArgs e); public class AzureblobBlobListEventArgs : EventArgs { public string Name { get; } public string Container { get; } public int BlobType { get; } public string Snapshot { get; } public long ContentLength { get; } public string ContentType { get; } public string CreatedTime { get; } public string ModifiedTime { get; } public string ETag { get; } public bool SoftDeleted { get; } public bool IsLeased { get; } public int LeaseState { get; } }
Public Event OnBlobList As OnBlobListHandler Public Delegate Sub OnBlobListHandler(sender As Object, e As AzureblobBlobListEventArgs) Public Class AzureblobBlobListEventArgs Inherits EventArgs Public ReadOnly Property Name As String Public ReadOnly Property Container As String Public ReadOnly Property BlobType As Integer Public ReadOnly Property Snapshot As String Public ReadOnly Property ContentLength As Long Public ReadOnly Property ContentType As String Public ReadOnly Property CreatedTime As String Public ReadOnly Property ModifiedTime As String Public ReadOnly Property ETag As String Public ReadOnly Property SoftDeleted As Boolean Public ReadOnly Property IsLeased As Boolean Public ReadOnly Property LeaseState As Integer End Class
Remarks
This event fires once for each blob returned when ListBlobs or GetBlobInfo is called.
Name is the name of the blob.
Container is the name of the blob's container.
BlobType is the blob's type. Possible values are:
abtBlockBlob (0) | Block blob |
abtPageBlob (1) | Page blob |
abtAppendBlob (2) | Append blob |
Refer to Azure's Understanding block blobs, append blobs, and page blobs article for more information about blob types.
Snapshot is the snapshot identifier, if the current item represents a blob snapshot; empty otherwise.
ContentLength is the size of the blob's committed data in bytes, for block blobs and append blobs. For page blobs, its the capacity in bytes.
ContentType is the blob's content type. Always empty for uncommitted block blobs.
CreatedTime and ModifiedTime reflect the creation and last modified times of the blob, formatted according to RFC 1123. The latter is always empty for uncommitted block blobs.
ETag is the blob's ETag. Always empty for uncommitted block blobs.
SoftDeleted indicates whether the blob (or snapshot, if Snapshot is non-empty) has been soft-deleted.
IsLeased indicates whether the blob is currently leased. Always false if SoftDeleted is true and/or Snapshot is non-empty.
LeaseState reflects the lease state of the blob. Possible values are:
ablsAvailable (0) | The blob's lease is unlocked and can be acquired. |
ablsLeased (1) | The blob's lease is locked. |
ablsExpired (2) | The lease duration has expired. |
ablsBreaking (3) | The lease has been broken, but will continue to be locked until the break period expires. |
ablsBroken (4) | The lease has been broken, and the break period has expired. |