MetricsClient 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
MetricsClient() |
Initializes a new instance of the MetricsClient class. |
MetricsClient(SubscriptionCloudCredentials) |
Initializes a new instance of the MetricsClient class. |
MetricsClient(HttpClient) |
Initializes a new instance of the MetricsClient class. |
MetricsClient(SubscriptionCloudCredentials, HttpClient) |
Initializes a new instance of the MetricsClient class. |
MetricsClient(SubscriptionCloudCredentials, Uri) |
Initializes a new instance of the MetricsClient class. |
MetricsClient(SubscriptionCloudCredentials, Uri, HttpClient) |
Initializes a new instance of the MetricsClient class. |
MetricsClient()
Initializes a new instance of the MetricsClient class.
public MetricsClient ();
Public Sub New ()
Applies to
MetricsClient(SubscriptionCloudCredentials)
Initializes a new instance of the MetricsClient class.
public MetricsClient (Microsoft.Azure.SubscriptionCloudCredentials credentials);
new Microsoft.WindowsAzure.Management.Monitoring.Metrics.MetricsClient : Microsoft.Azure.SubscriptionCloudCredentials -> Microsoft.WindowsAzure.Management.Monitoring.Metrics.MetricsClient
Public Sub New (credentials As SubscriptionCloudCredentials)
Parameters
- credentials
- Microsoft.Azure.SubscriptionCloudCredentials
Required. Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
Applies to
MetricsClient(HttpClient)
Initializes a new instance of the MetricsClient class.
public MetricsClient (System.Net.Http.HttpClient httpClient);
new Microsoft.WindowsAzure.Management.Monitoring.Metrics.MetricsClient : System.Net.Http.HttpClient -> Microsoft.WindowsAzure.Management.Monitoring.Metrics.MetricsClient
Public Sub New (httpClient As HttpClient)
Parameters
- httpClient
- HttpClient
The Http client
Applies to
MetricsClient(SubscriptionCloudCredentials, HttpClient)
Initializes a new instance of the MetricsClient class.
public MetricsClient (Microsoft.Azure.SubscriptionCloudCredentials credentials, System.Net.Http.HttpClient httpClient);
new Microsoft.WindowsAzure.Management.Monitoring.Metrics.MetricsClient : Microsoft.Azure.SubscriptionCloudCredentials * System.Net.Http.HttpClient -> Microsoft.WindowsAzure.Management.Monitoring.Metrics.MetricsClient
Public Sub New (credentials As SubscriptionCloudCredentials, httpClient As HttpClient)
Parameters
- credentials
- Microsoft.Azure.SubscriptionCloudCredentials
Required. Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- httpClient
- HttpClient
The Http client
Applies to
MetricsClient(SubscriptionCloudCredentials, Uri)
Initializes a new instance of the MetricsClient class.
public MetricsClient (Microsoft.Azure.SubscriptionCloudCredentials credentials, Uri baseUri);
new Microsoft.WindowsAzure.Management.Monitoring.Metrics.MetricsClient : Microsoft.Azure.SubscriptionCloudCredentials * Uri -> Microsoft.WindowsAzure.Management.Monitoring.Metrics.MetricsClient
Public Sub New (credentials As SubscriptionCloudCredentials, baseUri As Uri)
Parameters
- credentials
- Microsoft.Azure.SubscriptionCloudCredentials
Required. Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- baseUri
- Uri
Optional. Gets the URI used as the base for all cloud service requests.
Applies to
MetricsClient(SubscriptionCloudCredentials, Uri, HttpClient)
Initializes a new instance of the MetricsClient class.
public MetricsClient (Microsoft.Azure.SubscriptionCloudCredentials credentials, Uri baseUri, System.Net.Http.HttpClient httpClient);
new Microsoft.WindowsAzure.Management.Monitoring.Metrics.MetricsClient : Microsoft.Azure.SubscriptionCloudCredentials * Uri * System.Net.Http.HttpClient -> Microsoft.WindowsAzure.Management.Monitoring.Metrics.MetricsClient
Public Sub New (credentials As SubscriptionCloudCredentials, baseUri As Uri, httpClient As HttpClient)
Parameters
- credentials
- Microsoft.Azure.SubscriptionCloudCredentials
Required. Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- baseUri
- Uri
Optional. Gets the URI used as the base for all cloud service requests.
- httpClient
- HttpClient
The Http client
Applies to
Azure SDK for .NET