Compartilhar via


BotServiceExtensions.GetBots Method

Definition

Overloads

Name Description
GetBots(ResourceGroupResource)

Gets a collection of Bots in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetBots() instead. </item>

GetBots(SubscriptionResource, CancellationToken)

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

GetBots(ResourceGroupResource)

Source:
BotServiceExtensions.cs
Source:
BotServiceExtensions.cs

Gets a collection of Bots in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetBots() instead. </item>

public static Azure.ResourceManager.BotService.BotCollection GetBots(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetBots : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.BotService.BotCollection
<Extension()>
Public Function GetBots (resourceGroupResource As ResourceGroupResource) As BotCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

Returns

An object representing collection of Bots and their operations over a BotResource.

Exceptions

resourceGroupResource is null.

Applies to

GetBots(SubscriptionResource, CancellationToken)

Source:
BotServiceExtensions.cs
Source:
BotServiceExtensions.cs

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

public static Azure.Pageable<Azure.ResourceManager.BotService.BotResource> GetBots(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetBots : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.BotService.BotResource>
<Extension()>
Public Function GetBots (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(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