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
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.
Azure SDK for .NET