QueryResponse<T>.CurrentPage 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 current page of queried items.
public System.Collections.Generic.IEnumerable<T> CurrentPage { get; }
member this.CurrentPage : seq<'T>
Public ReadOnly Property CurrentPage As IEnumerable(Of T)
Property Value
IEnumerable<T>
Examples
QueryResponse<Twin> queriedTwins = await iotHubServiceClient.Query.CreateAsync<Twin>("SELECT * FROM devices");
while (await queriedTwins.MoveNextAsync())
{
Twin queriedTwin = queriedTwins.Current;
Console.WriteLine(queriedTwin);
}
Remarks
While you can iterate over the queried page of items using this, there is no logic built into it that allows you to fetch the next page of results automatically. Because of that, most users are better off following the sample code that iterates item by item rather than page by page.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for .NET