LargeFaceListClient.GetLargeFaceListAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetLargeFaceListAsync(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.
|
GetLargeFaceListAsync(Nullable<Boolean>, CancellationToken) |
Please refer to https://learn.microsoft.com/rest/api/face/face-list-operations/get-large-face-list for more details. |
GetLargeFaceListAsync(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.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
- Please try the simpler GetLargeFaceListAsync(Nullable<Boolean>, CancellationToken) convenience overload with strongly typed models first.
public virtual System.Threading.Tasks.Task<Azure.Response> GetLargeFaceListAsync (bool? returnRecognitionModel, Azure.RequestContext context);
abstract member GetLargeFaceListAsync : Nullable<bool> * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetLargeFaceListAsync : Nullable<bool> * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetLargeFaceListAsync (returnRecognitionModel As Nullable(Of Boolean), context As RequestContext) As Task(Of Response)
Parameters
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 GetLargeFaceListAsync 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 = await client.GetLargeFaceListAsync(true, null);
JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("name").ToString());
Console.WriteLine(result.GetProperty("largeFaceListId").ToString());
Applies to
GetLargeFaceListAsync(Nullable<Boolean>, CancellationToken)
- Source:
- LargeFaceListClient.cs
Please refer to https://learn.microsoft.com/rest/api/face/face-list-operations/get-large-face-list for more details.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Vision.Face.LargeFaceList>> GetLargeFaceListAsync (bool? returnRecognitionModel = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetLargeFaceListAsync : Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Vision.Face.LargeFaceList>>
override this.GetLargeFaceListAsync : Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Vision.Face.LargeFaceList>>
Public Overridable Function GetLargeFaceListAsync (Optional returnRecognitionModel As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of LargeFaceList))
Parameters
Return 'recognitionModel' or not. The default value is false.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Examples
This sample shows how to call GetLargeFaceListAsync.
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 = await client.GetLargeFaceListAsync();