CloudBlobClient.GetBlobReference 方法 (String)
程序集： Microsoft.WindowsAzure.StorageClient（在 microsoft.windowsazure.storageclient.dll 中）
The absolute URI to the blob, or a relative URI beginning with the container name.
返回值A reference to a blob.
The following example shows two ways to call the GetBlobReference method.
//Get a reference to a blob using a relative address. CloudBlob publicBlob = publicClient.GetBlobReference("mypubliccontainer/publicBlob.txt"); //Get a reference to a blob using an absolute address. CloudBlob publicBlob = publicClient.GetBlobReference("https://storagesample.blob.core.windows.net/mypubliccontainer/publicBlob.txt");
The GetBlobReference method returns a reference to the named blob, but it does not indicate whether the blob exists, as it does not make a round-trip to the service. If you need to ascertain the blob'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.