ApiManagementServiceResource.GetContentItemsAsync 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 developer portal's content items specified by the provided content type.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems
- Operation Id: ContentItem_ListByService
- Default Api Version: 2023-03-01-preview
public virtual Azure.AsyncPageable<Azure.ResourceManager.ApiManagement.Models.ApiManagementContentItem> GetContentItemsAsync (string contentTypeId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetContentItemsAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ApiManagement.Models.ApiManagementContentItem>
override this.GetContentItemsAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ApiManagement.Models.ApiManagementContentItem>
Public Overridable Function GetContentItemsAsync (contentTypeId As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ApiManagementContentItem)
Parameters
- contentTypeId
- String
Content type identifier.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
An async collection of ApiManagementContentItem that may take multiple service requests to iterate over.
Exceptions
contentTypeId
is an empty string, and was expected to be non-empty.
contentTypeId
is null.
Applies to
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.
Azure SDK for .NET