Sdílet prostřednictvím


DevCenterExtensions.GetDevCenters Method

Definition

Overloads

GetDevCenters(SubscriptionResource, Nullable<Int32>, CancellationToken)

Lists all devcenters in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/devcenters
  • Operation Id: DevCenters_ListBySubscription
GetDevCenters(ResourceGroupResource)

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

GetDevCenters(SubscriptionResource, Nullable<Int32>, CancellationToken)

Source:
DevCenterExtensions.cs

Lists all devcenters in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/devcenters
  • Operation Id: DevCenters_ListBySubscription
public static Azure.Pageable<Azure.ResourceManager.DevCenter.DevCenterResource> GetDevCenters (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, int? top = default, System.Threading.CancellationToken cancellationToken = default);
static member GetDevCenters : Azure.ResourceManager.Resources.SubscriptionResource * Nullable<int> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.DevCenter.DevCenterResource>
<Extension()>
Public Function GetDevCenters (subscriptionResource As SubscriptionResource, Optional top As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of DevCenterResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

top
Nullable<Int32>

The maximum number of resources to return from the operation. Example: '$top=10'.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to

GetDevCenters(ResourceGroupResource)

Source:
DevCenterExtensions.cs

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

public static Azure.ResourceManager.DevCenter.DevCenterCollection GetDevCenters (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetDevCenters : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.DevCenter.DevCenterCollection
<Extension()>
Public Function GetDevCenters (resourceGroupResource As ResourceGroupResource) As DevCenterCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of DevCenterResources and their operations over a DevCenterResource.

Exceptions

resourceGroupResource is null.

Applies to