Freigeben über


ApiManagementServiceResource.GetContentItemAsync Methode

Definition

Gibt das inhaltsbezogene Element des Entwicklerportals zurück, das durch seinen Bezeichner angegeben ist.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}
  • Vorgang IdContentItem_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApiManagement.Models.ApiManagementContentItem>> GetContentItemAsync (string contentTypeId, string contentItemId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetContentItemAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApiManagement.Models.ApiManagementContentItem>>
override this.GetContentItemAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApiManagement.Models.ApiManagementContentItem>>
Public Overridable Function GetContentItemAsync (contentTypeId As String, contentItemId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ApiManagementContentItem))

Parameter

contentTypeId
String

Inhaltstypbezeichner.

contentItemId
String

Inhaltselementbezeichner.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

contentTypeId oder contentItemId ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

contentTypeId oder contentItemId ist NULL.

Gilt für: