MetricsAdvisorKeyCredential(String, String) Constructor

Definition

Initializes a new instance of the MetricsAdvisorKeyCredential class.

public MetricsAdvisorKeyCredential (string subscriptionKey, string apiKey);
new Azure.AI.MetricsAdvisor.MetricsAdvisorKeyCredential : string * string -> Azure.AI.MetricsAdvisor.MetricsAdvisorKeyCredential
Public Sub New (subscriptionKey As String, apiKey As String)

Parameters

subscriptionKey
String

The subscription key to use to authenticate with the Azure service.

apiKey
String

The API key to use to authenticate the user with the Metrics Advisor service. Used to differentiate administrators and viewers.

Exceptions

subscriptionKey or apiKey is null.

subscriptionKey or apiKey is empty.

Applies to