QueryOptions.ContinuationToken プロパティ

定義

クエリ列挙を続行するために使用するトークン。

public string ContinuationToken { get; set; }
member this.ContinuationToken : string with get, set
Public Property ContinuationToken As String

プロパティ値

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); }

注釈

既定では、このライブラリは必要に応じてこの値を入力します。 たとえば、返すアイテムの合計数が 10 個のページ サイズ 5 のクエリを実行すると、結果の最初のページの末尾で MoveNextAsync() を呼び出すときにこの値を指定しなくても、このライブラリは結果の 2 番目のページをフェッチします。

適用対象