MetadataList Event
Fires once for each metadata item returned when bucket or file information and metadata is retrieved.
Syntax
public event OnMetadataListHandler OnMetadataList; public delegate void OnMetadataListHandler(object sender, Backblazeb2MetadataListEventArgs e); public class Backblazeb2MetadataListEventArgs : EventArgs { public string BucketId { get; } public string FileId { get; } public string Name { get; } public string Value { get; } }
Public Event OnMetadataList As OnMetadataListHandler Public Delegate Sub OnMetadataListHandler(sender As Object, e As Backblazeb2MetadataListEventArgs) Public Class Backblazeb2MetadataListEventArgs Inherits EventArgs Public ReadOnly Property BucketId As String Public ReadOnly Property FileId As String Public ReadOnly Property Name As String Public ReadOnly Property Value As String End Class
Remarks
This event fires once for each metadata item returned when GetBucketInfo or GetFileInfo is called. If the ListWithMetadata configuration setting is enabled, it also fires as metadata for each individual bucket or file is returned when ListBuckets, ListFiles, ListFileVersions, or ListMultipartUploads is called.
BucketId reflects the Id of the bucket that the file is in (if FileId is non-empty), or that the metadata item is associated with (if FileId is empty).
FileId, if non-empty, reflects the Id of the file that the metadata item is associated with.
Name reflects the name of the metadata item.
Value reflects the value of the metadata item.