ISupportsListingByResourceGroup<T>.ListByResourceGroupAsync 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.
Lists resources of the specified type in the specified resource group.
public System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Fluent.Core.IPagedCollection<T>> ListByResourceGroupAsync (string resourceGroupName, bool loadAllPages = true, System.Threading.CancellationToken cancellationToken = default);
abstract member ListByResourceGroupAsync : string * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Fluent.Core.IPagedCollection<'T>>
Public Function ListByResourceGroupAsync (resourceGroupName As String, Optional loadAllPages As Boolean = true, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPagedCollection(Of T))
Parameters
- resourceGroupName
- String
the name of the resource group to list the resources from
- loadAllPages
- Boolean
- cancellationToken
- CancellationToken
Returns
Task<IPagedCollection<T>>
the list of resources