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

ConfigurationAssignmentsForSubscriptionsOperationsExtensions.CreateOrUpdateAsync Method

Definition

Create configuration assignment

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Maintenance.Models.ConfigurationAssignment> CreateOrUpdateAsync (this Microsoft.Azure.Management.Maintenance.IConfigurationAssignmentsForSubscriptionsOperations operations, string configurationAssignmentName, Microsoft.Azure.Management.Maintenance.Models.ConfigurationAssignment configurationAssignment, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Maintenance.IConfigurationAssignmentsForSubscriptionsOperations * string * Microsoft.Azure.Management.Maintenance.Models.ConfigurationAssignment * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Maintenance.Models.ConfigurationAssignment>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IConfigurationAssignmentsForSubscriptionsOperations, configurationAssignmentName As String, configurationAssignment As ConfigurationAssignment, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ConfigurationAssignment)

Parameters

operations
IConfigurationAssignmentsForSubscriptionsOperations

The operations group for this extension method.

configurationAssignmentName
String

Configuration assignment name

configurationAssignment
ConfigurationAssignment

The configurationAssignment

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

Register configuration for resource.

Applies to