내보내기(0) 인쇄
모두 확장

CloudPageBlob.GetPageRanges 메서드 ()

Gets a collection of page ranges and their starting and ending bytes.

네임스페이스: Microsoft.WindowsAzure.StorageClient
어셈블리: Microsoft.WindowsAzure.StorageClient(microsoft.windowsazure.storageclient.dll)

‘사용 방법
Dim instance As CloudPageBlob
Dim returnValue As IEnumerable(Of PageRange)

returnValue = instance.GetPageRanges

public IEnumerable<PageRange> GetPageRanges ()
public IEnumerable<PageRange> GetPageRanges ()
public function GetPageRanges () : IEnumerable<PageRange>

반환 값

An enumerable collection of page ranges.

The following example returns the collection of page ranges for a page blob and writes them to the console window.

static void GetPageBlobRanges(Uri blobEndpoint, string accountName, string accountKey)
{
    //Create service client for credentialed access to the Blob service.
    CloudBlobClient blobClient = new CloudBlobClient(blobEndpoint, new StorageCredentialsAccountAndKey(accountName, accountKey));

    //Get a reference to the page blob.
    CloudPageBlob pageBlob = blobClient.GetPageBlobReference("mycontainer/mypageblob");

    foreach (PageRange pageRange in pageBlob.GetPageRanges())
    {
        Console.WriteLine("Starting offset: " + pageRange.StartOffset);
        Console.WriteLine("Ending offset: " + pageRange.EndOffset);
        Console.WriteLine("Content: " + pageRange.ToString());
        Console.WriteLine();
    }
}

The start and end byte offsets for each page range are inclusive.


이 형식의 모든 public static(Shared, Visual Basic의 경우) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.

개발 플랫폼

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

대상 플랫폼

커뮤니티 추가 항목

표시:
© 2014 Microsoft