[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 page blob in this container. Namespace: Microsoft.WindowsAzure.StorageClient
Assembly: Microsoft.WindowsAzure.StorageClient (in Microsoft.WindowsAzure.StorageClient.dll)
Gets a reference to a page blob in this container. Namespace: Microsoft.WindowsAzure.StorageClient
Assembly: Microsoft.WindowsAzure.StorageClient (in Microsoft.WindowsAzure.StorageClient.dll)
Usage
| Visual Basic |
|---|
Dim instance As CloudBlobContainer Dim blobAddressUri As String Dim returnValue As CloudPageBlob returnValue = instance.GetPageBlobReference(blobAddressUri) |
Syntax
| Visual Basic |
|---|
Public Function GetPageBlobReference ( _ blobAddressUri As String _ ) As CloudPageBlob |
| C# |
|---|
public CloudPageBlob GetPageBlobReference ( string blobAddressUri ) |
| C++ |
|---|
public: CloudPageBlob^ GetPageBlobReference ( String^ blobAddressUri ) |
| J# |
|---|
| JScript |
|---|
Parameters
- blobAddressUri
Type: System.String
The URI of the blob relative to the container.
Return Value
Type: Microsoft.WindowsAzure.StorageClient.CloudPageBlobA reference to a page blob.
Remarks
The blobAddressUri parameter is the URI of the page blob relative to the container. For example, consider the following code sample:
| C# | Copy Code |
|---|---|
public CloudPageBlob GetCloudPageBlob(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 page blob within the container.
CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient();
CloudBlobContainer container = blobClient.GetContainerReference("mycontainer");
CloudPageBlob myBlob = container.GetPageBlobReference("myblob");
return myBlob;
}
| |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.