Share via


RegistrationAssignmentsOperationsExtensions.CreateOrUpdateAsync Method

Definition

Creates or updates a registration assignment.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ManagedServices.Models.RegistrationAssignment> CreateOrUpdateAsync (this Microsoft.Azure.Management.ManagedServices.IRegistrationAssignmentsOperations operations, string scope, string registrationAssignmentId, Microsoft.Azure.Management.ManagedServices.Models.RegistrationAssignment requestBody, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.ManagedServices.IRegistrationAssignmentsOperations * string * string * Microsoft.Azure.Management.ManagedServices.Models.RegistrationAssignment * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ManagedServices.Models.RegistrationAssignment>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IRegistrationAssignmentsOperations, scope As String, registrationAssignmentId As String, requestBody As RegistrationAssignment, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RegistrationAssignment)

Parameters

operations
IRegistrationAssignmentsOperations

The operations group for this extension method.

scope
String

Scope of the resource.

registrationAssignmentId
String

Guid of the registration assignment.

requestBody
RegistrationAssignment

The parameters required to create new registration assignment.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to