Condividi tramite


BotServiceExtensions.GetBotsAsync Method

Definition

Returns all the resources of a particular type belonging to a subscription. <item> Mocking. To mock this method, please mock GetBotsAsync(CancellationToken) instead. </item>

public static Azure.AsyncPageable<Azure.ResourceManager.BotService.BotResource> GetBotsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetBotsAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.BotService.BotResource>
<Extension()>
Public Function GetBotsAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of BotResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of BotResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to