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

ILargePersonGroupOperations.ListWithHttpMessagesAsync 方法

定义

列出所有现有大型人员组的 largePersonGroupId、name、userData 和 recognitionModel。<Br/>

  • 大型人员组按 largePersonGroupId 的字母顺序存储。
  • “start”参数 (字符串,可选) 是用户提供的 largePersonGroupId 值,通过字符串比较返回的条目具有较大的 ID。 “start”设置为空,表示从第一个项返回。
  • “top”参数 (int,可选) 指定要返回的条目数。 在一次调用中可以返回最大 1000 个条目。 若要获取更多内容,可以使用当前调用的最后一个重新优化条目的 ID 指定“start”。 <br /> 例如,总共 5 个大型人员组:“group1”, ..., “group5”。 <br /> “start=&top=” 将返回所有 5 个组。 <br /> “start=&top=2”将返回“group1”、“group2”。 <br /> “start=group2&top=3”将返回“group3”、“group4”、“group5”。
public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.Vision.Face.Models.LargePersonGroup>>> ListWithHttpMessagesAsync (string start = default, int? top = 1000, bool? returnRecognitionModel = False, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ListWithHttpMessagesAsync : string * Nullable<int> * Nullable<bool> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.Vision.Face.Models.LargePersonGroup>>>
Public Function ListWithHttpMessagesAsync (Optional start As String = Nothing, Optional top As Nullable(Of Integer) = 1000, Optional returnRecognitionModel As Nullable(Of Boolean) = False, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of IList(Of LargePersonGroup)))

参数

start
String

列出大于“start”的最小大型PersonGroupId 中的大型人员组。

top
Nullable<Int32>

要列出的大型人员组的数量。

returnRecognitionModel
Nullable<Boolean>

一个值,该值指示操作是否应返回“recognitionModel”作为响应。

customHeaders
Dictionary<String,List<String>>

将添加到请求的标头。

cancellationToken
CancellationToken

取消标记。

返回

例外

操作返回无效状态代码时引发

无法反序列化响应时引发

当所需的参数为 null 时引发

适用于