你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
PersonGroupOperations.ListWithHttpMessagesAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
列出人员组的 personGroupId、name、userData 和 recognitionModel。<Br/>
- 人员组按 personGroupId 的字母顺序存储。
- “start”参数 (字符串,可选) 是用户提供的 personGroupId 值,通过字符串比较返回的条目具有较大的 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.PersonGroup>>> 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.PersonGroup>>>
override this.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.PersonGroup>>>
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 PersonGroup)))
参数
- start
- String
从大于“start”的最小 personGroupId 中列出人员组。
- customHeaders
- Dictionary<String,List<String>>
将添加到请求的标头。
- cancellationToken
- CancellationToken
取消标记。
返回
实现
例外
当操作返回无效状态代码时引发
无法反序列化响应时引发
当所需参数为 null 时引发
当所需参数为 null 时引发