QueryOptions.ContinuationToken Property

Definition

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