共用方式為


ContentItemOperationsExtensions.CreateOrUpdateAsync Method

Definition

Creates a new developer portal's content item specified by the provided content type.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ApiManagement.Models.ContentItemContract> CreateOrUpdateAsync (this Microsoft.Azure.Management.ApiManagement.IContentItemOperations operations, string resourceGroupName, string serviceName, string contentTypeId, string contentItemId, string ifMatch = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.ApiManagement.IContentItemOperations * string * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ApiManagement.Models.ContentItemContract>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IContentItemOperations, resourceGroupName As String, serviceName As String, contentTypeId As String, contentItemId As String, Optional ifMatch As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ContentItemContract)

Parameters

operations
IContentItemOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

serviceName
String

The name of the API Management service.

contentTypeId
String

Content type identifier.

contentItemId
String

Content item identifier.

ifMatch
String

ETag of the Entity. Not required when creating an entity, but required when updating an entity.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to