Class SubscriptionClient | Azure SDK for Net
Andrew Henderson
Published Feb 16, 2026
The subscription client
Inheritance
SubscriptionClient
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.Subscription.dll
Syntax
public class SubscriptionClient : Microsoft.Rest.ServiceClient<Microsoft.Azure.Management.Subscription.SubscriptionClient>, IDisposable, Microsoft.Azure.Management.Subscription.ISubscriptionClient, Microsoft.Rest.Azure.IAzureClient Constructors
SubscriptionClient(DelegatingHandler[])
Initializes a new instance of the SubscriptionClient class.
Declaration
protected SubscriptionClient (params System.Net.Http.DelegatingHandler[] handlers); Parameters
| DelegatingHandler[] handlers Optional. The delegating handlers to add to the http client pipeline. |
SubscriptionClient(ServiceClientCredentials, DelegatingHandler[])
Initializes a new instance of the SubscriptionClient class.
Declaration
public SubscriptionClient (Microsoft.Rest.ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers); Parameters
Exceptions
SubscriptionClient(HttpClient, Boolean)
Initializes a new instance of the SubscriptionClient class.
Declaration
protected SubscriptionClient (System.Net.Http.HttpClient httpClient, bool disposeHttpClient); Parameters
| HttpClient httpClient HttpClient to be used |
| Boolean disposeHttpClient True: will dispose the provided httpClient on calling SubscriptionClient.Dispose(). False: will not dispose provided httpClient |
SubscriptionClient(HttpClientHandler, DelegatingHandler[])
Initializes a new instance of the SubscriptionClient class.
Declaration
protected SubscriptionClient (System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers); Parameters
| HttpClientHandler rootHandler Optional. The http client handler used to handle http transport. |
| DelegatingHandler[] handlers Optional. The delegating handlers to add to the http client pipeline. |
SubscriptionClient(Uri, DelegatingHandler[])
Initializes a new instance of the SubscriptionClient class.
Declaration
protected SubscriptionClient (Uri baseUri, params System.Net.Http.DelegatingHandler[] handlers); Parameters
| Uri baseUri Optional. The base URI of the service. |
| DelegatingHandler[] handlers Optional. The delegating handlers to add to the http client pipeline. |
Exceptions
SubscriptionClient(ServiceClientCredentials, HttpClient, Boolean)
Initializes a new instance of the SubscriptionClient class.
Declaration
public SubscriptionClient (Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClient httpClient, bool disposeHttpClient); Parameters
| ServiceClientCredentials credentials Required. Credentials needed for the client to connect to Azure. |
| HttpClient httpClient HttpClient to be used |
| Boolean disposeHttpClient True: will dispose the provided httpClient on calling SubscriptionClient.Dispose(). False: will not dispose provided httpClient |
Exceptions
SubscriptionClient(ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])
Initializes a new instance of the SubscriptionClient class.
Declaration
public SubscriptionClient (Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers); Parameters
| ServiceClientCredentials credentials Required. Credentials needed for the client to connect to Azure. |
| HttpClientHandler rootHandler Optional. The http client handler used to handle http transport. |
| DelegatingHandler[] handlers Optional. The delegating handlers to add to the http client pipeline. |
Exceptions
SubscriptionClient(Uri, ServiceClientCredentials, DelegatingHandler[])
Initializes a new instance of the SubscriptionClient class.
Declaration
public SubscriptionClient (Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers); Parameters
| Uri baseUri Optional. The base URI of the service. |
| ServiceClientCredentials credentials Required. Credentials needed for the client to connect to Azure. |
| DelegatingHandler[] handlers Optional. The delegating handlers to add to the http client pipeline. |
Exceptions
SubscriptionClient(Uri, HttpClientHandler, DelegatingHandler[])
Initializes a new instance of the SubscriptionClient class.
Declaration
protected SubscriptionClient (Uri baseUri, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers); Parameters
| Uri baseUri Optional. The base URI of the service. |
| HttpClientHandler rootHandler Optional. The http client handler used to handle http transport. |
| DelegatingHandler[] handlers Optional. The delegating handlers to add to the http client pipeline. |
Exceptions
SubscriptionClient(Uri, ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])
Initializes a new instance of the SubscriptionClient class.
Declaration
public SubscriptionClient (Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers); Parameters
| Uri baseUri Optional. The base URI of the service. |
| ServiceClientCredentials credentials Required. Credentials needed for the client to connect to Azure. |
| HttpClientHandler rootHandler Optional. The http client handler used to handle http transport. |
| DelegatingHandler[] handlers Optional. The delegating handlers to add to the http client pipeline. |
Exceptions
Properties
AcceptLanguage
The preferred language for the response.
Declaration
public string AcceptLanguage { get; set; } Property Value
Implements
BaseUri
The base URI of the service.
Declaration
public Uri BaseUri { get; set; } Property Value
Implements
Credentials
Credentials needed for the client to connect to Azure.
Declaration
public Microsoft.Rest.ServiceClientCredentials Credentials { get; } Property Value
DeserializationSettings
Gets or sets json deserialization settings.
Declaration
public Newtonsoft.Json.JsonSerializerSettings DeserializationSettings { get; } Property Value
GenerateClientRequestId
Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
Declaration
public Nullable<bool> GenerateClientRequestId { get; set; } Property Value
Implements
LongRunningOperationRetryTimeout
The retry timeout in seconds for Long Running Operations. Default value is 30.
Declaration
public Nullable<int> LongRunningOperationRetryTimeout { get; set; } Property Value
Implements
Operations
Gets the IOperations.
Declaration
public Microsoft.Azure.Management.Subscription.IOperations Operations { get; } Property Value
SerializationSettings
Gets or sets json serialization settings.
Declaration
public Newtonsoft.Json.JsonSerializerSettings SerializationSettings { get; } Property Value
SubscriptionFactory
Gets the ISubscriptionFactoryOperations.
Declaration
public Microsoft.Azure.Management.Subscription.ISubscriptionFactoryOperations SubscriptionFactory { get; } Property Value
SubscriptionOperation
Gets the ISubscriptionOperationOperations.
Declaration
public Microsoft.Azure.Management.Subscription.ISubscriptionOperationOperations SubscriptionOperation { get; } Property Value
SubscriptionOperations
Gets the ISubscriptionOperations.
Declaration
public Microsoft.Azure.Management.Subscription.ISubscriptionOperations SubscriptionOperations { get; } Property Value
Subscriptions
Gets the ISubscriptionsOperations.
Declaration
public Microsoft.Azure.Management.Subscription.ISubscriptionsOperations Subscriptions { get; } Property Value
Tenants
Gets the ITenantsOperations.
Declaration
public Microsoft.Azure.Management.Subscription.ITenantsOperations Tenants { get; }