Freigeben über


SnapshotsOperationsExtensions.UpdateAsync Methode

Definition

Updates (patches) ein Momentaufnahme.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.Snapshot> UpdateAsync (this Microsoft.Azure.Management.Compute.ISnapshotsOperations operations, string resourceGroupName, string snapshotName, Microsoft.Azure.Management.Compute.Models.SnapshotUpdate snapshot, System.Threading.CancellationToken cancellationToken = default);
static member UpdateAsync : Microsoft.Azure.Management.Compute.ISnapshotsOperations * string * string * Microsoft.Azure.Management.Compute.Models.SnapshotUpdate * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.Snapshot>
<Extension()>
Public Function UpdateAsync (operations As ISnapshotsOperations, resourceGroupName As String, snapshotName As String, snapshot As SnapshotUpdate, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Snapshot)

Parameter

operations
ISnapshotsOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

resourceGroupName
String

Der Name der Ressourcengruppe.

snapshotName
String

Der Name der Momentaufnahme, die erstellt wird. Der Name kann nicht geändert werden, nachdem die Momentaufnahme erstellt wurde. Unterstützte Zeichen für den Namen sind a-z, A-Z, 0-9, _ und -. Die maximale Länge des Namens beträgt 80 Zeichen.

snapshot
SnapshotUpdate

Momentaufnahmeobjekt, das im Text des Vorgangs Patch Momentaufnahme bereitgestellt wird.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Gilt für: