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

IdentityProviderOperationsExtensions.CreateOrUpdateAsync 方法

定义

创建或更新 IdentityProvider 配置。

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

参数

operations
IIdentityProviderOperations

此扩展方法的操作组。

resourceGroupName
String

资源组的名称。

serviceName
String

API 管理服务的名称。

identityProviderName
String

标识提供者类型标识符。 可能的值包括:“facebook”、“google”、“microsoft”、“twitter”、“aad”、“aadB2C”

parameters
IdentityProviderCreateContract

创建参数。

ifMatch
String

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

cancellationToken
CancellationToken

取消标记。

返回

适用于