Condividi tramite


LargePersonGroupClient.GetLargePersonGroups Method

Definition

Overloads

GetLargePersonGroups(String, Nullable<Int32>, Nullable<Boolean>, RequestContext)

[Protocol Method] List all existing Large Person Groups' largePersonGroupId, name, userData and recognitionModel.

GetLargePersonGroups(String, Nullable<Int32>, Nullable<Boolean>, CancellationToken)

List all existing Large Person Groups' largePersonGroupId, name, userData and recognitionModel.

GetLargePersonGroups(String, Nullable<Int32>, Nullable<Boolean>, RequestContext)

Source:
LargePersonGroupClient.cs

[Protocol Method] List all existing Large Person Groups' largePersonGroupId, name, userData and recognitionModel.

public virtual Azure.Response GetLargePersonGroups (string start, int? top, bool? returnRecognitionModel, Azure.RequestContext context);
abstract member GetLargePersonGroups : string * Nullable<int> * Nullable<bool> * Azure.RequestContext -> Azure.Response
override this.GetLargePersonGroups : string * Nullable<int> * Nullable<bool> * Azure.RequestContext -> Azure.Response
Public Overridable Function GetLargePersonGroups (start As String, top As Nullable(Of Integer), returnRecognitionModel As Nullable(Of Boolean), context As RequestContext) As Response

Parameters

start
String

List resources greater than the "start". It contains no more than 64 characters. Default is empty.

top
Nullable<Int32>

The number of items to list, ranging in [1, 1000]. Default is 1000.

returnRecognitionModel
Nullable<Boolean>

Return 'recognitionModel' or not. The default value is false.

context
RequestContext

The request context, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

Service returned a non-success status code.

Examples

This sample shows how to call GetLargePersonGroups and parse the result.

Uri endpoint = new Uri("<endpoint>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
LargePersonGroupClient client = new FaceAdministrationClient(endpoint, credential).GetLargePersonGroupClient(null);

Response response = client.GetLargePersonGroups("00000000-0000-0000-0000-000000000000", 20, true, null);

JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result[0].GetProperty("name").ToString());
Console.WriteLine(result[0].GetProperty("largePersonGroupId").ToString());

Applies to

GetLargePersonGroups(String, Nullable<Int32>, Nullable<Boolean>, CancellationToken)

Source:
LargePersonGroupClient.cs

List all existing Large Person Groups' largePersonGroupId, name, userData and recognitionModel.

public virtual Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Vision.Face.LargePersonGroup>> GetLargePersonGroups (string start = default, int? top = default, bool? returnRecognitionModel = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetLargePersonGroups : string * Nullable<int> * Nullable<bool> * System.Threading.CancellationToken -> Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Vision.Face.LargePersonGroup>>
override this.GetLargePersonGroups : string * Nullable<int> * Nullable<bool> * System.Threading.CancellationToken -> Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Vision.Face.LargePersonGroup>>
Public Overridable Function GetLargePersonGroups (Optional start As String = Nothing, Optional top As Nullable(Of Integer) = Nothing, Optional returnRecognitionModel As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of IReadOnlyList(Of LargePersonGroup))

Parameters

start
String

List resources greater than the "start". It contains no more than 64 characters. Default is empty.

top
Nullable<Int32>

The number of items to list, ranging in [1, 1000]. Default is 1000.

returnRecognitionModel
Nullable<Boolean>

Return 'recognitionModel' or not. The default value is false.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Examples

This sample shows how to call GetLargePersonGroups.

Uri endpoint = new Uri("<endpoint>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
LargePersonGroupClient client = new FaceAdministrationClient(endpoint, credential).GetLargePersonGroupClient(null);

Response<IReadOnlyList<LargePersonGroup>> response = client.GetLargePersonGroups();

Remarks

Please refer to https://learn.microsoft.com/rest/api/face/person-group-operations/get-large-person-groups for more details.

Applies to