你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
FabricClient.QueryClient.GetServicePagedListAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetServicePagedListAsync(ServiceQueryDescription) |
获取应用程序的所有服务的详细信息,或者仅获取与查询说明中指定的筛选器匹配的指定服务的详细信息 ((如果有任何) )。 如果服务不适合页面,则返回一页结果以及可用于获取下一页的继续标记。 |
GetServicePagedListAsync(ServiceQueryDescription, TimeSpan, CancellationToken) |
获取应用程序的所有服务的详细信息,或者仅获取与查询说明中指定的筛选器匹配的指定服务的详细信息 ((如果有任何) )。 如果服务不适合页面,则返回一页结果以及可用于获取下一页的继续标记。 |
GetServicePagedListAsync(ServiceQueryDescription)
获取应用程序的所有服务的详细信息,或者仅获取与查询说明中指定的筛选器匹配的指定服务的详细信息 ((如果有任何) )。 如果服务不适合页面,则返回一页结果以及可用于获取下一页的继续标记。
public System.Threading.Tasks.Task<System.Fabric.Query.ServiceList> GetServicePagedListAsync(System.Fabric.Description.ServiceQueryDescription serviceQueryDescription);
member this.GetServicePagedListAsync : System.Fabric.Description.ServiceQueryDescription -> System.Threading.Tasks.Task<System.Fabric.Query.ServiceList>
Public Function GetServicePagedListAsync (serviceQueryDescription As ServiceQueryDescription) As Task(Of ServiceList)
参数
- serviceQueryDescription
- ServiceQueryDescription
确定 ServiceQueryDescription 应查询的服务的 。
返回
表示 Task 异步查询操作的 。 TResult 参数的值是一个 ServiceList ,它表示遵循 中的 ServiceList 筛选器并适合页面的服务列表。 如果提供的查询说明没有匹配的服务,它将返回包含 0 个条目的列表。
例外
有关处理常见 FabricClient 故障,请参阅 https://azure.microsoft.com/documentation/articles/service-fabric-errors-and-exceptions/ 。
有关处理常见 FabricClient 故障,请参阅 https://azure.microsoft.com/documentation/articles/service-fabric-errors-and-exceptions/ 。
另 https://azure.microsoft.com/documentation/articles/service-fabric-errors-and-exceptions/ 请参阅处理常见的 FabricClient 故障。
适用于
GetServicePagedListAsync(ServiceQueryDescription, TimeSpan, CancellationToken)
获取应用程序的所有服务的详细信息,或者仅获取与查询说明中指定的筛选器匹配的指定服务的详细信息 ((如果有任何) )。 如果服务不适合页面,则返回一页结果以及可用于获取下一页的继续标记。
public System.Threading.Tasks.Task<System.Fabric.Query.ServiceList> GetServicePagedListAsync(System.Fabric.Description.ServiceQueryDescription serviceQueryDescription, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.GetServicePagedListAsync : System.Fabric.Description.ServiceQueryDescription * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Query.ServiceList>
Public Function GetServicePagedListAsync (serviceQueryDescription As ServiceQueryDescription, timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of ServiceList)
参数
- serviceQueryDescription
- ServiceQueryDescription
确定 ServiceQueryDescription 应查询的服务的 。
- timeout
- TimeSpan
指定此操作在超时之前必须完成的持续时间。
- cancellationToken
- CancellationToken
传播应取消操作的通知。
返回
表示 Task 异步查询操作的 。 TResult 参数的值是一个 ServiceList ,它表示遵循 中的 ServiceList 筛选器并适合页面的服务列表。 如果提供的查询说明没有匹配的服务,它将返回包含 0 个条目的列表。
例外
有关处理常见 FabricClient 故障,请参阅 https://azure.microsoft.com/documentation/articles/service-fabric-errors-and-exceptions/ 。
有关处理常见 FabricClient 故障,请参阅 https://azure.microsoft.com/documentation/articles/service-fabric-errors-and-exceptions/ 。
另 https://azure.microsoft.com/documentation/articles/service-fabric-errors-and-exceptions/ 请参阅处理常见的 FabricClient 故障。