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
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
Azure SDK for .NET
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: