Begins an asynchronous operation to return a result segment containing a collection of table names beginning with the specified prefix. Namespace: Microsoft.WindowsAzure.StorageClient
Assembly: Microsoft.WindowsAzure.StorageClient (in Microsoft.WindowsAzure.StorageClient.dll)
Usage
Visual Basic |
---|
Dim instance As CloudTableClient Dim prefix As String Dim callback As AsyncCallback Dim state As Object Dim returnValue As IAsyncResult returnValue = instance.BeginListTablesSegmented(prefix, callback, state) |
Syntax
Visual Basic |
---|
Public Function BeginListTablesSegmented ( _ prefix As String, _ callback As AsyncCallback, _ state As Object _ ) As IAsyncResult |
C# |
---|
public IAsyncResult BeginListTablesSegmented ( string prefix, AsyncCallback callback, Object state ) |
C++ |
---|
public: IAsyncResult^ BeginListTablesSegmented ( String^ prefix, AsyncCallback^ callback, Object^ state ) |
J# |
---|
JScript |
---|
Parameters
- prefix
Type: System.String
The table name prefix.
- callback
Type: System.AsyncCallback
The callback delegate that will receive notification when the asynchronous operation completes.
- state
Type: System.Object
A user-defined object that will be passed to the callback delegate.
Return Value
Type: System.IAsyncResultAn IAsyncResult that references the asynchronous operation.Remarks
The BeginListTablesSegmented method begins an operation to list table names in pages. A page is set of results of a specified size; it is represented by the ResultSegment class.
Call the EndListTablesSegmented method to complete the asynchronous operation.
By returning table names in pages, you can control the number of table names returned per operation. This may be useful if, for example, you are displaying a web page with some predefined number of table names on it.
To specify the page size to return, pass in a non-zero value for the maxResults parameter. Passing in zero for the maxResults parameter returns either the maximum number of results available, or the per-operation limit of 1000 results.
If you have specified a page size, you can check the HasMoreResults property to check whether the page is complete. If HasMoreResults is true, the complete page has not been returned for some reason. Call GetNext to return the remaining results in the page.
Note that if you have not specified a page size, HasMoreResults will always be false. Check the value of the ContinuationToken property to determine whether there are more results to return from the service after the page is complete. The continuation token is non-null as long as there are more results to return from the service. If the page is complete, then HasMoreResults will be false, but if the continuation token is non-null, there are additional results to return beyond that page.
Call the GetNext method to return the next segment of results from the service.