MetricsAdvisorKeyCredential(String, String) Constructor
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.
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
Azure SDK for .NET