BillingBenefitsExtensions.GetFreeServicesAsync 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 |
|---|---|
| GetFreeServicesAsync(SubscriptionResource, CancellationToken) |
This operation lists free services that are available under the specified subscription. <item> Mocking. To mock this method, please mock GetFreeServicesAsync(CancellationToken) instead. </item> |
| GetFreeServicesAsync(ResourceGroupResource, String, CancellationToken) |
This operation retrieves properties for free services. <item> Mocking. To mock this method, please mock GetFreeServicesAsync(String, CancellationToken) instead. </item> |
GetFreeServicesAsync(SubscriptionResource, CancellationToken)
- Source:
- BillingBenefitsExtensions.cs
This operation lists free services that are available under the specified subscription. <item> Mocking. To mock this method, please mock GetFreeServicesAsync(CancellationToken) instead. </item>
public static Azure.AsyncPageable<Azure.ResourceManager.BillingBenefits.FreeServicesResource> GetFreeServicesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetFreeServicesAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.BillingBenefits.FreeServicesResource>
<Extension()>
Public Function GetFreeServicesAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of FreeServicesResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of FreeServicesResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource is null.
Applies to
GetFreeServicesAsync(ResourceGroupResource, String, CancellationToken)
- Source:
- BillingBenefitsExtensions.cs
This operation retrieves properties for free services. <item> Mocking. To mock this method, please mock GetFreeServicesAsync(String, CancellationToken) instead. </item>
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.BillingBenefits.FreeServicesResource>> GetFreeServicesAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string freeServiceName, System.Threading.CancellationToken cancellationToken = default);
static member GetFreeServicesAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.BillingBenefits.FreeServicesResource>>
<Extension()>
Public Function GetFreeServicesAsync (resourceGroupResource As ResourceGroupResource, freeServiceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of FreeServicesResource))
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource the method will execute against.
- freeServiceName
- String
Name of the free service.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
resourceGroupResource is null.