Share via


FaceClient Constructors

Definition

Overloads

FaceClient()

Initializes a new instance of FaceClient for mocking.

FaceClient(Uri, AzureKeyCredential)

Initializes a new instance of FaceClient.

FaceClient(Uri, TokenCredential)

Initializes a new instance of FaceClient.

FaceClient(Uri, AzureKeyCredential, AzureAIVisionFaceClientOptions)

Initializes a new instance of FaceClient.

FaceClient(Uri, TokenCredential, AzureAIVisionFaceClientOptions)

Initializes a new instance of FaceClient.

FaceClient()

Source:
FaceClient.cs

Initializes a new instance of FaceClient for mocking.

protected FaceClient ();
Protected Sub New ()

Applies to

FaceClient(Uri, AzureKeyCredential)

Source:
FaceClient.cs

Initializes a new instance of FaceClient.

public FaceClient (Uri endpoint, Azure.AzureKeyCredential credential);
new Azure.AI.Vision.Face.FaceClient : Uri * Azure.AzureKeyCredential -> Azure.AI.Vision.Face.FaceClient
Public Sub New (endpoint As Uri, credential As AzureKeyCredential)

Parameters

endpoint
Uri

Supported Cognitive Services endpoints (protocol and hostname, for example: https://{resource-name}.cognitiveservices.azure.com).

credential
AzureKeyCredential

A credential used to authenticate to an Azure Service.

Exceptions

endpoint or credential is null.

Applies to

FaceClient(Uri, TokenCredential)

Source:
FaceClient.cs

Initializes a new instance of FaceClient.

public FaceClient (Uri endpoint, Azure.Core.TokenCredential credential);
new Azure.AI.Vision.Face.FaceClient : Uri * Azure.Core.TokenCredential -> Azure.AI.Vision.Face.FaceClient
Public Sub New (endpoint As Uri, credential As TokenCredential)

Parameters

endpoint
Uri

Supported Cognitive Services endpoints (protocol and hostname, for example: https://{resource-name}.cognitiveservices.azure.com).

credential
TokenCredential

A credential used to authenticate to an Azure Service.

Exceptions

endpoint or credential is null.

Applies to

FaceClient(Uri, AzureKeyCredential, AzureAIVisionFaceClientOptions)

Source:
FaceClient.cs

Initializes a new instance of FaceClient.

public FaceClient (Uri endpoint, Azure.AzureKeyCredential credential, Azure.AI.Vision.Face.AzureAIVisionFaceClientOptions options);
new Azure.AI.Vision.Face.FaceClient : Uri * Azure.AzureKeyCredential * Azure.AI.Vision.Face.AzureAIVisionFaceClientOptions -> Azure.AI.Vision.Face.FaceClient
Public Sub New (endpoint As Uri, credential As AzureKeyCredential, options As AzureAIVisionFaceClientOptions)

Parameters

endpoint
Uri

Supported Cognitive Services endpoints (protocol and hostname, for example: https://{resource-name}.cognitiveservices.azure.com).

credential
AzureKeyCredential

A credential used to authenticate to an Azure Service.

options
AzureAIVisionFaceClientOptions

The options for configuring the client.

Exceptions

endpoint or credential is null.

Applies to

FaceClient(Uri, TokenCredential, AzureAIVisionFaceClientOptions)

Source:
FaceClient.cs

Initializes a new instance of FaceClient.

public FaceClient (Uri endpoint, Azure.Core.TokenCredential credential, Azure.AI.Vision.Face.AzureAIVisionFaceClientOptions options);
new Azure.AI.Vision.Face.FaceClient : Uri * Azure.Core.TokenCredential * Azure.AI.Vision.Face.AzureAIVisionFaceClientOptions -> Azure.AI.Vision.Face.FaceClient
Public Sub New (endpoint As Uri, credential As TokenCredential, options As AzureAIVisionFaceClientOptions)

Parameters

endpoint
Uri

Supported Cognitive Services endpoints (protocol and hostname, for example: https://{resource-name}.cognitiveservices.azure.com).

credential
TokenCredential

A credential used to authenticate to an Azure Service.

options
AzureAIVisionFaceClientOptions

The options for configuring the client.

Exceptions

endpoint or credential is null.

Applies to