QueryResponse<T>.Current プロパティ

定義

クエリ結果の現在のページの現在のアイテムを取得します。 クエリを進めずに複数回呼び出すことができます。

public T Current { get; }
member this.Current : 'T
Public ReadOnly Property Current As T

プロパティ値

T

QueryResponse<Twin> queriedTwins = await iotHubServiceClient.Query.CreateAsync<Twin>("SELECT * FROM devices"); while (await queriedTwins.MoveNextAsync()) // no item is skipped by calling this first { Twin queriedTwin = queriedTwins.Current; Console.WriteLine(queriedTwin); }

注釈

IEnumerator のより一般的な実装と同様に、この値は最初 MoveNextAsync(QueryOptions, CancellationToken) の呼び出しが行われるまで null です。

適用対象