Dela via


BotServiceExtensions.GetBots Method

Definition

Overloads

GetBots(ResourceGroupResource)

Gets a collection of BotResources in the ResourceGroupResource. MockingTo mock this method, please mock GetBots() instead.

GetBots(SubscriptionResource, CancellationToken)

Returns all the resources of a particular type belonging to a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.BotService/botServices
  • Operation Id: Bots_List

GetBots(ResourceGroupResource)

Source:
BotServiceExtensions.cs
Source:
BotServiceExtensions.cs

Gets a collection of BotResources in the ResourceGroupResource. MockingTo mock this method, please mock GetBots() instead.

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 instance the method will execute against.

Returns

An object representing collection of BotResources 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.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.BotService/botServices
  • Operation Id: Bots_List
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 instance 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