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
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