VisionServiceOptions Constructors

Definition

Overloads

VisionServiceOptions(Uri)

Constructs a new VisionServiceOptions

VisionServiceOptions(String, AzureKeyCredential)

Constructs a new VisionServiceOptions

VisionServiceOptions(String, TokenCredential)

Constructs a new VisionServiceOptions

VisionServiceOptions(Uri, AzureKeyCredential)

Constructs a new VisionServiceOptions

VisionServiceOptions(Uri)

Constructs a new VisionServiceOptions

public VisionServiceOptions (Uri url);
new Azure.AI.Vision.Core.Options.VisionServiceOptions : Uri -> Azure.AI.Vision.Core.Options.VisionServiceOptions
Public Sub New (url As Uri)

Parameters

url
Uri

The endpoint of the Vision Service

Applies to

VisionServiceOptions(String, AzureKeyCredential)

Constructs a new VisionServiceOptions

public VisionServiceOptions (string url, Azure.AzureKeyCredential key);
new Azure.AI.Vision.Core.Options.VisionServiceOptions : string * Azure.AzureKeyCredential -> Azure.AI.Vision.Core.Options.VisionServiceOptions
Public Sub New (url As String, key As AzureKeyCredential)

Parameters

url
String

The endpoint of the Vision Service

key
AzureKeyCredential

The Computer Vision key used to authenticate against the Vision Service

Remarks

Store your key securely. For example, using Azure Key Vault. Do not compile the value of your key into your application source code. Fetch it at run-time when needed from a secure location.

Applies to

VisionServiceOptions(String, TokenCredential)

Constructs a new VisionServiceOptions

public VisionServiceOptions (string url, Azure.Core.TokenCredential tokenCredential);
new Azure.AI.Vision.Core.Options.VisionServiceOptions : string * Azure.Core.TokenCredential -> Azure.AI.Vision.Core.Options.VisionServiceOptions
Public Sub New (url As String, tokenCredential As TokenCredential)

Parameters

url
String

The endpoint of the Vision Service

tokenCredential
TokenCredential

A short-duration token derived from your Computer Vision key, used to authenticate against the Vision Service

Applies to

VisionServiceOptions(Uri, AzureKeyCredential)

Constructs a new VisionServiceOptions

public VisionServiceOptions (Uri url, Azure.AzureKeyCredential key);
new Azure.AI.Vision.Core.Options.VisionServiceOptions : Uri * Azure.AzureKeyCredential -> Azure.AI.Vision.Core.Options.VisionServiceOptions
Public Sub New (url As Uri, key As AzureKeyCredential)

Parameters

url
Uri

The endpoint URL of the Vision Service

key
AzureKeyCredential

The Computer Vision key used to authenticate against the Vision Service

Remarks

Store your key securely. For example, using Azure Key Vault. Do not compile the value of your key into your application source code. Fetch it at run-time when needed from a secure location.

Applies to