Udostępnij za pośrednictwem


EmailTemplateOperationsExtensions.CreateOrUpdateAsync Method

Definition

Updates an Email Template.

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

Parameters

operations
IEmailTemplateOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

serviceName
String

The name of the API Management service.

templateName
String

Email Template Name Identifier. Possible values include: 'applicationApprovedNotificationMessage', 'accountClosedDeveloper', 'quotaLimitApproachingDeveloperNotificationMessage', 'newDeveloperNotificationMessage', 'emailChangeIdentityDefault', 'inviteUserNotificationMessage', 'newCommentNotificationMessage', 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', 'passwordResetByAdminNotificationMessage', 'rejectDeveloperNotificationMessage', 'requestDeveloperNotificationMessage'

parameters
EmailTemplateUpdateParameters

Email Template update parameters.

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