共用方式為


LargeFaceListClient.GetFace Method

Definition

Overloads

GetFace(Guid, RequestContext)

[Protocol Method] Please refer to https://zcusa.951200.xyz/rest/api/face/face-list-operations/get-large-face-list-face for more details.

GetFace(Guid, CancellationToken)

Please refer to https://zcusa.951200.xyz/rest/api/face/face-list-operations/get-large-face-list-face for more details.

GetFace(Guid, RequestContext)

Source:
LargeFaceListClient.cs

[Protocol Method] Please refer to https://zcusa.951200.xyz/rest/api/face/face-list-operations/get-large-face-list-face for more details.

public virtual Azure.Response GetFace (Guid persistedFaceId, Azure.RequestContext context);
abstract member GetFace : Guid * Azure.RequestContext -> Azure.Response
override this.GetFace : Guid * Azure.RequestContext -> Azure.Response
Public Overridable Function GetFace (persistedFaceId As Guid, context As RequestContext) As Response

Parameters

persistedFaceId
Guid

Face ID of the face.

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 GetFace 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.GetFace(Guid.Parse("43897a75-8d6f-42cf-885e-74832febb055"), null);

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

Applies to

GetFace(Guid, CancellationToken)

Source:
LargeFaceListClient.cs
public virtual Azure.Response<Azure.AI.Vision.Face.LargeFaceListFace> GetFace (Guid persistedFaceId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetFace : Guid * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Vision.Face.LargeFaceListFace>
override this.GetFace : Guid * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Vision.Face.LargeFaceListFace>
Public Overridable Function GetFace (persistedFaceId As Guid, Optional cancellationToken As CancellationToken = Nothing) As Response(Of LargeFaceListFace)

Parameters

persistedFaceId
Guid

Face ID of the face.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Examples

This sample shows how to call GetFace.

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

Response<LargeFaceListFace> response = client.GetFace(Guid.Parse("43897a75-8d6f-42cf-885e-74832febb055"));

Applies to