Экспорт (0) Печать
Развернуть все

Свойство BlobRequestOptions.BlobListingDetails

Gets or sets options for listing blobs.

Пространство имен: Microsoft.WindowsAzure.StorageClient
Сборка: Microsoft.WindowsAzure.StorageClient (в microsoft.windowsazure.storageclient.dll)

'Применение
Dim instance As BlobRequestOptions
Dim value As BlobListingDetails

value = instance.BlobListingDetails

instance.BlobListingDetails = value

public BlobListingDetails BlobListingDetails { get; set; }
/** @property */
/** @attribute CompilerGeneratedAttribute() */ 
public BlobListingDetails get_BlobListingDetails ()

/** @property */
/** @attribute CompilerGeneratedAttribute() */ 
public void set_BlobListingDetails (BlobListingDetails value)

CompilerGeneratedAttribute 
public function get BlobListingDetails () : BlobListingDetails

CompilerGeneratedAttribute 
public function set BlobListingDetails (value : BlobListingDetails)

Значение свойства

Type: BlobListingDetails

One of the enumeration values that indicates what items a listing operation will return.

The following code example lists blobs in a container, including snapshots.

static void ListBlobsInContainer(Uri blobEndpoint, string accountName, string accountKey)
{
    //Create service client for credentialed access to the Blob service.
    CloudBlobClient blobClient = new CloudBlobClient(blobEndpoint, new StorageCredentialsAccountAndKey(accountName, accountKey));

    //Get a reference to the container.
    CloudBlobContainer container = blobClient.GetContainerReference("mycontainer");

    //List blobs in this container using a flat listing.
    BlobRequestOptions options = new BlobRequestOptions();
    options.UseFlatBlobListing = true;

    //List snapshots, which requires a flat blob listing.
    options.BlobListingDetails = BlobListingDetails.Snapshots;
            
    foreach (var blobItem in container.ListBlobs(options))
    {
        Console.WriteLine(blobItem.Uri);
    }
}

This property is applicable only to a request to list blobs.


Все открытые статические (Совместно используемая в Visual Basic) члены этого типа являются потокобезопасными. Потокобезопасность членов экземпляров не гарантируется.

Платформы разработки

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Server 2008 и Windows 2000

Целевые платформы

Добавления сообщества

Показ:
© 2014 Microsoft