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

ResourceConfigExtensions.CreateOrUpdateAsync<TModel> Method

Definition

public static System.Threading.Tasks.Task<TModel> CreateOrUpdateAsync<TModel> (this Microsoft.Azure.Commands.Common.Strategies.ResourceConfig<TModel> config, Microsoft.Azure.Commands.Common.Strategies.IClient client, TModel model, System.Threading.CancellationToken cancellationToken) where TModel : class;
static member CreateOrUpdateAsync : Microsoft.Azure.Commands.Common.Strategies.ResourceConfig<'Model (requires 'Model : null)> * Microsoft.Azure.Commands.Common.Strategies.IClient * 'Model * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Model (requires 'Model : null)> (requires 'Model : null)
<Extension()>
Public Function CreateOrUpdateAsync(Of TModel As Class) (config As ResourceConfig(Of TModel), client As IClient, model As TModel, cancellationToken As CancellationToken) As Task(Of TModel)

Type Parameters

TModel

Parameters

client
IClient
model
TModel
cancellationToken
CancellationToken

Returns

Task<TModel>

Applies to