Share via


DevCenterExtensions.GetDevCenterProjects Method

Definition

Overloads

GetDevCenterProjects(ResourceGroupResource)

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

GetDevCenterProjects(SubscriptionResource, Nullable<Int32>, CancellationToken)

Lists all projects in the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/projects
  • Operation Id: Projects_ListBySubscription

GetDevCenterProjects(ResourceGroupResource)

Source:
DevCenterExtensions.cs

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

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of DevCenterProjectResources and their operations over a DevCenterProjectResource.

Exceptions

resourceGroupResource is null.

Applies to

GetDevCenterProjects(SubscriptionResource, Nullable<Int32>, CancellationToken)

Source:
DevCenterExtensions.cs

Lists all projects in the subscription.

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

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 DevCenterProjectResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to