ISupportsListingInResourceGroupByTag<T>.ListByTagAsync 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 all the resources with the specified tag.
public System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Fluent.Core.IPagedCollection<T>> ListByTagAsync (string resourceGroupName, string tagName, string tagValue, bool loadAllPages = true, System.Threading.CancellationToken cancellationToken = default);
abstract member ListByTagAsync : string * string * string * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Fluent.Core.IPagedCollection<'T>>
Public Function ListByTagAsync (resourceGroupName As String, tagName As String, tagValue 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.
- tagName
- String
tag's name as the key
- tagValue
- String
tag's value
- loadAllPages
- Boolean
Specify true to load all pages, false to get paginated result
- cancellationToken
- CancellationToken
cancellationToken the cancellation token
Returns
Task<IPagedCollection<T>>
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET