DevCenterProjectPolicyCollection.GetAllAsync Method

Definition

Lists all project policies in the dev center.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/projectPolicies.
  • Operation Id. : ProjectPolicies_ListByDevCenter.
  • Default Api Version. : 2026-01-01-preview.
public virtual Azure.AsyncPageable<Azure.ResourceManager.DevCenter.DevCenterProjectPolicyResource> GetAllAsync(int? top = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : Nullable<int> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.DevCenter.DevCenterProjectPolicyResource>
override this.GetAllAsync : Nullable<int> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.DevCenter.DevCenterProjectPolicyResource>
Public Overridable Function GetAllAsync (Optional top As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of DevCenterProjectPolicyResource)

Parameters

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

Applies to