ProblemClassificationsOperationsExtensions.ListAsync Method

Definition

Lists all the problem classifications (categories) available for a specific Azure service. Always use the service and problem classifications obtained programmatically. This practice ensures that you always have the most recent set of service and problem classification Ids.

public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Azure.Management.Support.Models.ProblemClassification>> ListAsync (this Microsoft.Azure.Management.Support.IProblemClassificationsOperations operations, string serviceName, System.Threading.CancellationToken cancellationToken = default);
static member ListAsync : Microsoft.Azure.Management.Support.IProblemClassificationsOperations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.Azure.Management.Support.Models.ProblemClassification>>
<Extension()>
Public Function ListAsync (operations As IProblemClassificationsOperations, serviceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of ProblemClassification))

Parameters

operations
IProblemClassificationsOperations

The operations group for this extension method.

serviceName
String

Name of the Azure service for which the problem classifications need to be retrieved.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to