BillingProfileCollection.Get(String, CancellationToken) Method
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.
Gets a billing profile by its ID. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.
- Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}
- Operation Id: BillingProfiles_Get
- Default Api Version: 2024-04-01
- Resource: BillingProfileResource
public virtual Azure.Response<Azure.ResourceManager.Billing.BillingProfileResource> Get (string billingProfileName, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Billing.BillingProfileResource>
override this.Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Billing.BillingProfileResource>
Public Overridable Function Get (billingProfileName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of BillingProfileResource)
Parameters
- billingProfileName
- String
The ID that uniquely identifies a billing profile.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
billingProfileName
is an empty string, and was expected to be non-empty.
billingProfileName
is null.
Applies to
Azure SDK for .NET