Dela via


LargePersonGroupClient.GetLargePersonGroup Method

Definition

Overloads

GetLargePersonGroup(Nullable<Boolean>, RequestContext)

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

GetLargePersonGroup(Nullable<Boolean>, CancellationToken)

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

GetLargePersonGroup(Nullable<Boolean>, RequestContext)

Source:
LargePersonGroupClient.cs

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

public virtual Azure.Response GetLargePersonGroup (bool? returnRecognitionModel, Azure.RequestContext context);
abstract member GetLargePersonGroup : Nullable<bool> * Azure.RequestContext -> Azure.Response
override this.GetLargePersonGroup : Nullable<bool> * Azure.RequestContext -> Azure.Response
Public Overridable Function GetLargePersonGroup (returnRecognitionModel As Nullable(Of Boolean), context As RequestContext) As Response

Parameters

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 GetLargePersonGroup and parse the result.

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

Response response = client.GetLargePersonGroup(true, null);

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

Applies to

GetLargePersonGroup(Nullable<Boolean>, CancellationToken)

Source:
LargePersonGroupClient.cs
public virtual Azure.Response<Azure.AI.Vision.Face.LargePersonGroup> GetLargePersonGroup (bool? returnRecognitionModel = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetLargePersonGroup : Nullable<bool> * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Vision.Face.LargePersonGroup>
override this.GetLargePersonGroup : Nullable<bool> * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Vision.Face.LargePersonGroup>
Public Overridable Function GetLargePersonGroup (Optional returnRecognitionModel As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of LargePersonGroup)

Parameters

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 GetLargePersonGroup.

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

Response<LargePersonGroup> response = client.GetLargePersonGroup();

Applies to