你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

EmailTemplateOperationsExtensions.CreateOrUpdateAsync 方法

定义

汇报Email模板。

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)

参数

operations
IEmailTemplateOperations

此扩展方法的操作组。

resourceGroupName
String

资源组的名称。

serviceName
String

API 管理服务的名称。

templateName
String

Email模板名称标识符。 可能的值包括:“applicationApprovedNotificationMessage”、“accountClosedDeveloper”、“quotaLimitApproachingDeveloperNotificationMessage”、“newDeveloperNotificationMessage”, 'emailChangeIdentityDefault', 'inviteUserNotificationMessage', 'newCommentNotificationMessage', 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', 'passwordResetByAdminNotificationMessage',rejectDeveloperNotificationMessage', 'requestDeveloperNotificationMessage'

parameters
EmailTemplateUpdateParameters

Email模板更新参数。

ifMatch
String

实体的 ETag。 创建实体时不需要,但在更新实体时是必需的。

cancellationToken
CancellationToken

取消标记。

返回

适用于