Dela via


LargeFaceListClient.GetLargeFaceList Method

Definition

Overloads

GetLargeFaceList(Nullable<Boolean>, RequestContext)

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

GetLargeFaceList(Nullable<Boolean>, CancellationToken)

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

GetLargeFaceList(Nullable<Boolean>, RequestContext)

Source:
LargeFaceListClient.cs

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

public virtual Azure.Response GetLargeFaceList (bool? returnRecognitionModel, Azure.RequestContext context);
abstract member GetLargeFaceList : Nullable<bool> * Azure.RequestContext -> Azure.Response
override this.GetLargeFaceList : Nullable<bool> * Azure.RequestContext -> Azure.Response
Public Overridable Function GetLargeFaceList (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 GetLargeFaceList and parse the result.

Uri endpoint = new Uri("<endpoint>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
LargeFaceListClient client = new FaceAdministrationClient(endpoint, credential).GetLargeFaceListClient("your_large_face_list_id");

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

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

Applies to

GetLargeFaceList(Nullable<Boolean>, CancellationToken)

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

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

Uri endpoint = new Uri("<endpoint>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
LargeFaceListClient client = new FaceAdministrationClient(endpoint, credential).GetLargeFaceListClient("your_large_face_list_id");

Response<LargeFaceList> response = client.GetLargeFaceList();

Applies to