共用方式為


ApiManagementServiceResource.DeleteContentItem Method

Definition

Removes the specified developer portal's content item.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}
  • Operation Id: ContentItem_Delete
  • Default Api Version: 2023-03-01-preview
public virtual Azure.Response DeleteContentItem (string contentTypeId, string contentItemId, Azure.ETag ifMatch, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteContentItem : string * string * Azure.ETag * System.Threading.CancellationToken -> Azure.Response
override this.DeleteContentItem : string * string * Azure.ETag * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function DeleteContentItem (contentTypeId As String, contentItemId As String, ifMatch As ETag, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

contentTypeId
String

Content type identifier.

contentItemId
String

Content item identifier.

ifMatch
ETag

ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

contentTypeId or contentItemId is an empty string, and was expected to be non-empty.

contentTypeId or contentItemId is null.

Applies to