Freigeben über


ApiManagementServiceResource.DeleteContentItemAsync Methode

Definition

Entfernt das Inhaltselement des angegebenen Entwicklerportals.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}
  • Vorgangs-IdContentItem_Delete
public virtual System.Threading.Tasks.Task<Azure.Response> DeleteContentItemAsync (string contentTypeId, string contentItemId, Azure.ETag ifMatch, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteContentItemAsync : string * string * Azure.ETag * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.DeleteContentItemAsync : string * string * Azure.ETag * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DeleteContentItemAsync (contentTypeId As String, contentItemId As String, ifMatch As ETag, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameter

contentTypeId
String

Inhaltstypbezeichner.

contentItemId
String

Inhaltselementbezeichner.

ifMatch
ETag

ETag der Entität. ETag sollte mit dem aktuellen Entitätsstatus aus der Headerantwort der GET-Anforderung übereinstimmen, oder es sollte * für eine bedingungslose Aktualisierung sein.

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: