QueryOptions.ContinuationToken Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The token to use for continuing the query enumeration.
public string ContinuationToken { get; set; }
member this.ContinuationToken : string with get, set
Public Property ContinuationToken As String
Property Value
Examples
QueryResponse<Twin> queriedTwins = await iotHubServiceClient.Query.CreateAsync<Twin>("SELECT * FROM devices");
// This call will use the previous continuation token for you when it comes time to get the
// next page of results.
while (await queriedTwins.MoveNextAsync())
{
Twin queriedTwin = queriedTwins.Current;
Console.WriteLine(queriedTwin);
}
Remarks
By default, this library will fill in this value for you as needed. For example, if you run a query of page size 5 that has 10 total items to return, this library will fetch the second page of results even if you do not provide this value when calling MoveNextAsync() at the end of the first page of results.
Applies to
Azure SDK for .NET