LargeFaceListClient.GetLargeFaceList 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
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.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
- Please try the simpler GetLargeFaceList(Nullable<Boolean>, CancellationToken) convenience overload with strongly typed models first.
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
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
Please refer to https://learn.microsoft.com/rest/api/face/face-list-operations/get-large-face-list for more details.
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
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
Azure SDK for .NET