Assembly: Microsoft.WindowsAzure.StorageClient (in microsoft.windowsazure.storageclient.dll)
public function GetContainerReference ( containerAddress : String ) : CloudBlobContainer
The name of the container, or an absolute URI to the container.
RückgabewertA 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.