你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IQuery 接口

定义

这会包装基础分页查询结果访问逻辑。

public interface IQuery
type IQuery = interface
Public Interface IQuery

注解

使用模式:

IQuery q = await registryManager.CreateQuery (sql, pagesize) ;while (q.HasMoreResults) { IEnumerable<Twin> result = r.GetNextAsTwinAsync () ; // access individual device twin records }

属性

HasMoreResults

指示是否可以提取更多结果

方法

GetNextAsDeviceJobAsync()

检索下一个分页结果作为 DeviceJob 对象

GetNextAsDeviceJobAsync(QueryOptions)

检索下一个分页结果作为 DeviceJob 对象

GetNextAsJobResponseAsync()

检索下一个分页结果作为 JobResponse 对象

GetNextAsJobResponseAsync(QueryOptions)

检索下一个分页结果作为 JobResponse 对象

GetNextAsJsonAsync()

以 JSON 字符串的形式检索下一个分页结果

GetNextAsJsonAsync(QueryOptions)

以 JSON 字符串的形式检索下一个分页结果

GetNextAsTwinAsync()

检索下一个分页结果作为 Twin 对象

GetNextAsTwinAsync(QueryOptions)

检索下一个分页结果作为 Twin 对象

适用于