DevCenterExtensions.GetDevCenters 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
GetDevCenters(SubscriptionResource, Nullable<Int32>, CancellationToken) |
Lists all devcenters in a subscription.
|
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.
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.