ApiManagementServiceResource.GetContentItems 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.Pageable<Azure.ResourceManager.ApiManagement.Models.ApiManagementContentItem> GetContentItems (string contentTypeId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetContentItems : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ApiManagement.Models.ApiManagementContentItem>
override this.GetContentItems : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ApiManagement.Models.ApiManagementContentItem>
Public Overridable Function GetContentItems (contentTypeId As String, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ApiManagementContentItem)
Parameters
- contentTypeId
- String
Content type identifier.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A 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
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.
Azure SDK for .NET