Compartir a través de


RolesOperationsExtensions.CreateOrUpdateAsync Método

Definición

Cree o actualice un rol.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.EdgeGateway.Models.Role> CreateOrUpdateAsync (this Microsoft.Azure.Management.EdgeGateway.IRolesOperations operations, string deviceName, string name, Microsoft.Azure.Management.EdgeGateway.Models.Role role, string resourceGroupName, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.EdgeGateway.IRolesOperations * string * string * Microsoft.Azure.Management.EdgeGateway.Models.Role * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.EdgeGateway.Models.Role>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IRolesOperations, deviceName As String, name As String, role As Role, resourceGroupName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Role)

Parámetros

operations
IRolesOperations

El grupo de operaciones de este método de extensión.

deviceName
String

El nombre de dispositivo.

name
String

Nombre del rol.

role
Role

Propiedades del rol.

resourceGroupName
String

El nombre del grupo de recursos.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Se aplica a