BlobDownloadInfo
The details and Content returned from downloading a blob
using Azure.Storage.Shared;
using System;
using System.ComponentModel;
using System.IO;
namespace Azure.Storage.Blobs.Models
{
public class BlobDownloadInfo : IDisposable, IDownloadedContent
{
[EditorBrowsable(EditorBrowsableState.Never)]
public BlobType BlobType { get; set; }
[EditorBrowsable(EditorBrowsableState.Never)]
public long ContentLength { get; set; }
public Stream Content { get; set; }
[EditorBrowsable(EditorBrowsableState.Never)]
public string ContentType { get; set; }
[EditorBrowsable(EditorBrowsableState.Never)]
public byte[] ContentHash { get; set; }
public BlobDownloadDetails Details { get; set; }
internal BlobDownloadInfo()
{
}
public void Dispose()
{
Content?.Dispose();
GC.SuppressFinalize(this);
}
}
}