共用方式為


AssignmentsOperationsExtensions.CreateOrUpdateAsync 方法

定義

建立或更新藍圖指派。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Blueprint.Models.Assignment> CreateOrUpdateAsync (this Microsoft.Azure.Management.Blueprint.IAssignmentsOperations operations, string resourceScope, string assignmentName, Microsoft.Azure.Management.Blueprint.Models.Assignment assignment, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Blueprint.IAssignmentsOperations * string * string * Microsoft.Azure.Management.Blueprint.Models.Assignment * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Blueprint.Models.Assignment>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IAssignmentsOperations, resourceScope As String, assignmentName As String, assignment As Assignment, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Assignment)

參數

operations
IAssignmentsOperations

這個擴充方法的作業群組。

resourceScope
String

資源的範圍。 有效的範圍包括:管理群組 (格式:'/providers/Microsoft.Management/managementGroups/{managementGroup}') ,訂用帳戶 (格式:'/subscriptions/{subscriptionId}') 。

assignmentName
String

藍圖指派的名稱。

assignment
Assignment

要儲存的藍圖指派物件。

cancellationToken
CancellationToken

取消語彙基元。

傳回

適用於