(0) exportieren Drucken
Alle erweitern

CloudBlobClient.GetContainerReference-Methode

Returns a reference to a CloudBlobContainer object with the specified address.

Namespace: Microsoft.WindowsAzure.StorageClient
Assembly: Microsoft.WindowsAzure.StorageClient (in microsoft.windowsazure.storageclient.dll)

'Usage
Dim instance As CloudBlobClient
Dim containerAddress As String
Dim returnValue As CloudBlobContainer

returnValue = instance.GetContainerReference(containerAddress)

public CloudBlobContainer GetContainerReference (
	string containerAddress
)
public CloudBlobContainer GetContainerReference (
	String containerAddress
)
public function GetContainerReference (
	containerAddress : String
) : CloudBlobContainer

Parameter

containerAddress

The name of the container, or an absolute URI to the container.

Rückgabewert

A reference to a container.

The GetContainerReference method returns a reference to the named container, but it does not indicate whether the container exists, as it does not make a round-trip to the service. If you need to ascertain the container's existence, call a method such as FetchAttributes, and handle the resulting StorageClientException in the event the blob does not exist. The FetchAttributes method executes a HEAD request to populate the blob's properties and metadata and as such is a lightweight option for determining whether the blob exists.


Alle öffentlichen statischen (freigegebenen in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Entwicklungsplattformen

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

Zielplattformen

Community-Beiträge

Anzeigen:
© 2014 Microsoft