(0) exportieren Drucken
Alle erweitern
EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

CloudBlobContainer.GetBlobReference Method

Updated: April 24, 2013

[This topic is part of the Microsoft Azure Storage Client Library 1.7, which has been deprecated. See Storage Client Library for the latest version.]

Gets a reference to a blob in this container.

Namespace: Microsoft.WindowsAzure.StorageClient
Assembly: Microsoft.WindowsAzure.StorageClient (in Microsoft.WindowsAzure.StorageClient.dll)

'Usage
Dim instance As CloudBlobContainer
Dim blobAddressUri As String
Dim returnValue As CloudBlob

returnValue = instance.GetBlobReference(blobAddressUri)

public CloudBlob GetBlobReference (
	string blobAddressUri
)

Parameters

blobAddressUri

Type: System.String

The URI of the blob relative to the container.

Return Value

Type: Microsoft.WindowsAzure.StorageClient.CloudBlob

A reference to a blob.

The blobAddressUri parameter is the URI of the blob relative to the container. For example, consider the following code sample:

public CloudBlob GetCloudBlob(string storageAccountName, string key)
{
    // Create a reference to the storage account.
    StorageCredentialsAccountAndKey storageCredentials = new StorageCredentialsAccountAndKey(storageAccountName, key);
    CloudStorageAccount storageAccount = new CloudStorageAccount(storageCredentials, false);

    // Create a reference to a blob container and a blob within the container.
    CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient();
    CloudBlobContainer container = blobClient.GetContainerReference("mycontainer");
    CloudBlob myBlob = container.GetBlobReference("myblob");

    return myBlob;
}


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

 

Microsoft führt eine Onlineumfrage durch, um Ihre Meinung zur MSDN-Website zu erfahren. Wenn Sie sich zur Teilnahme entscheiden, wird Ihnen die Onlineumfrage angezeigt, sobald Sie die MSDN-Website verlassen.

Möchten Sie an der Umfrage teilnehmen?
Anzeigen:
© 2014 Microsoft