ContentTypeOperationsExtensions.ListByServiceAsync Method

Definition

Lists the developer portal's content types. Content types describe content items' properties, validation rules, and constraints.

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ApiManagement.Models.ContentTypeContract>> ListByServiceAsync (this Microsoft.Azure.Management.ApiManagement.IContentTypeOperations operations, string resourceGroupName, string serviceName, System.Threading.CancellationToken cancellationToken = default);
static member ListByServiceAsync : Microsoft.Azure.Management.ApiManagement.IContentTypeOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ApiManagement.Models.ContentTypeContract>>
<Extension()>
Public Function ListByServiceAsync (operations As IContentTypeOperations, resourceGroupName As String, serviceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of ContentTypeContract))

Parameters

operations
IContentTypeOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

serviceName
String

The name of the API Management service.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to