BillingBenefitsExtensions.GetAllAsync 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.
Overloads
| Name | Description |
|---|---|
| GetAllAsync(ArmClient, ResourceIdentifier, CancellationToken) |
List maccs that are applicable for a given billing account. <item> Mocking. To mock this method, please mock GetAllAsync(ResourceIdentifier, CancellationToken) instead. </item> |
| GetAllAsync(TenantResource, SellerResourceListRequest, CancellationToken) |
List maccs by billing account <item> Mocking. To mock this method, please mock GetAllAsync(SellerResourceListRequest, CancellationToken) instead. </item> |
GetAllAsync(ArmClient, ResourceIdentifier, CancellationToken)
- Source:
- BillingBenefitsExtensions.cs
List maccs that are applicable for a given billing account. <item> Mocking. To mock this method, please mock GetAllAsync(ResourceIdentifier, CancellationToken) instead. </item>
public static Azure.AsyncPageable<Azure.ResourceManager.BillingBenefits.Models.ApplicableMacc> GetAllAsync(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, System.Threading.CancellationToken cancellationToken = default);
static member GetAllAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.BillingBenefits.Models.ApplicableMacc>
<Extension()>
Public Function GetAllAsync (client As ArmClient, scope As ResourceIdentifier, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ApplicableMacc)
Parameters
- scope
- ResourceIdentifier
The scope that the resource will apply against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of ApplicableMacc that may take multiple service requests to iterate over.
Exceptions
client is null.
Applies to
GetAllAsync(TenantResource, SellerResourceListRequest, CancellationToken)
- Source:
- BillingBenefitsExtensions.cs
List maccs by billing account <item> Mocking. To mock this method, please mock GetAllAsync(SellerResourceListRequest, CancellationToken) instead. </item>
public static Azure.AsyncPageable<Azure.ResourceManager.BillingBenefits.MaccResource> GetAllAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.ResourceManager.BillingBenefits.Models.SellerResourceListRequest content, System.Threading.CancellationToken cancellationToken = default);
static member GetAllAsync : Azure.ResourceManager.Resources.TenantResource * Azure.ResourceManager.BillingBenefits.Models.SellerResourceListRequest * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.BillingBenefits.MaccResource>
<Extension()>
Public Function GetAllAsync (tenantResource As TenantResource, content As SellerResourceListRequest, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of MaccResource)
Parameters
- tenantResource
- TenantResource
The TenantResource the method will execute against.
- content
- SellerResourceListRequest
The request body.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of MaccResource that may take multiple service requests to iterate over.
Exceptions
tenantResource is null.