MetricsAdvisorClient Constructors
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.
Overloads
MetricsAdvisorClient() |
Initializes a new instance of the MetricsAdvisorClient class. This constructor is intended to be used for mocking only. |
MetricsAdvisorClient(Uri, MetricsAdvisorKeyCredential) |
Initializes a new instance of the MetricsAdvisorClient class. |
MetricsAdvisorClient(Uri, TokenCredential) |
Initializes a new instance of the MetricsAdvisorClient class. |
MetricsAdvisorClient(Uri, MetricsAdvisorKeyCredential, MetricsAdvisorClientsOptions) |
Initializes a new instance of the MetricsAdvisorClient class. |
MetricsAdvisorClient(Uri, TokenCredential, MetricsAdvisorClientsOptions) |
Initializes a new instance of the MetricsAdvisorClient class. |
MetricsAdvisorClient()
- Source:
- MetricsAdvisorClient.cs
Initializes a new instance of the MetricsAdvisorClient class. This constructor is intended to be used for mocking only.
protected MetricsAdvisorClient ();
Protected Sub New ()
Applies to
MetricsAdvisorClient(Uri, MetricsAdvisorKeyCredential)
- Source:
- MetricsAdvisorClient.cs
Initializes a new instance of the MetricsAdvisorClient class.
public MetricsAdvisorClient (Uri endpoint, Azure.AI.MetricsAdvisor.MetricsAdvisorKeyCredential credential);
new Azure.AI.MetricsAdvisor.MetricsAdvisorClient : Uri * Azure.AI.MetricsAdvisor.MetricsAdvisorKeyCredential -> Azure.AI.MetricsAdvisor.MetricsAdvisorClient
Public Sub New (endpoint As Uri, credential As MetricsAdvisorKeyCredential)
Parameters
- endpoint
- Uri
The endpoint to use for connecting to the Metrics Advisor Cognitive Service.
- credential
- MetricsAdvisorKeyCredential
A credential used to authenticate to the service.
Exceptions
endpoint
or credential
is null.
Applies to
MetricsAdvisorClient(Uri, TokenCredential)
- Source:
- MetricsAdvisorClient.cs
Initializes a new instance of the MetricsAdvisorClient class.
public MetricsAdvisorClient (Uri endpoint, Azure.Core.TokenCredential credential);
new Azure.AI.MetricsAdvisor.MetricsAdvisorClient : Uri * Azure.Core.TokenCredential -> Azure.AI.MetricsAdvisor.MetricsAdvisorClient
Public Sub New (endpoint As Uri, credential As TokenCredential)
Parameters
- endpoint
- Uri
The endpoint to use for connecting to the Metrics Advisor Cognitive Service.
- credential
- TokenCredential
A credential used to authenticate to the service.
Exceptions
endpoint
or credential
is null.
Applies to
MetricsAdvisorClient(Uri, MetricsAdvisorKeyCredential, MetricsAdvisorClientsOptions)
- Source:
- MetricsAdvisorClient.cs
Initializes a new instance of the MetricsAdvisorClient class.
public MetricsAdvisorClient (Uri endpoint, Azure.AI.MetricsAdvisor.MetricsAdvisorKeyCredential credential, Azure.AI.MetricsAdvisor.MetricsAdvisorClientsOptions options);
new Azure.AI.MetricsAdvisor.MetricsAdvisorClient : Uri * Azure.AI.MetricsAdvisor.MetricsAdvisorKeyCredential * Azure.AI.MetricsAdvisor.MetricsAdvisorClientsOptions -> Azure.AI.MetricsAdvisor.MetricsAdvisorClient
Public Sub New (endpoint As Uri, credential As MetricsAdvisorKeyCredential, options As MetricsAdvisorClientsOptions)
Parameters
- endpoint
- Uri
The endpoint to use for connecting to the Metrics Advisor Cognitive Service.
- credential
- MetricsAdvisorKeyCredential
A credential used to authenticate to the service.
- options
- MetricsAdvisorClientsOptions
A set of options to apply when configuring the client.
Exceptions
endpoint
or credential
is null.
Applies to
MetricsAdvisorClient(Uri, TokenCredential, MetricsAdvisorClientsOptions)
- Source:
- MetricsAdvisorClient.cs
Initializes a new instance of the MetricsAdvisorClient class.
public MetricsAdvisorClient (Uri endpoint, Azure.Core.TokenCredential credential, Azure.AI.MetricsAdvisor.MetricsAdvisorClientsOptions options);
new Azure.AI.MetricsAdvisor.MetricsAdvisorClient : Uri * Azure.Core.TokenCredential * Azure.AI.MetricsAdvisor.MetricsAdvisorClientsOptions -> Azure.AI.MetricsAdvisor.MetricsAdvisorClient
Public Sub New (endpoint As Uri, credential As TokenCredential, options As MetricsAdvisorClientsOptions)
Parameters
- endpoint
- Uri
The endpoint to use for connecting to the Metrics Advisor Cognitive Service.
- credential
- TokenCredential
A credential used to authenticate to the service.
- options
- MetricsAdvisorClientsOptions
A set of options to apply when configuring the client.
Exceptions
endpoint
or credential
is null.
Applies to
Azure SDK for .NET