Freigeben über


SnapshotResource.Update(WaitUntil, SnapshotPatch, CancellationToken) Methode

Definition

Updates (Patches) eine Momentaufnahme.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}
  • Vorgang IdSnapshots_Update
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.SnapshotResource> Update (Azure.WaitUntil waitUntil, Azure.ResourceManager.Compute.Models.SnapshotPatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member Update : Azure.WaitUntil * Azure.ResourceManager.Compute.Models.SnapshotPatch * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.SnapshotResource>
override this.Update : Azure.WaitUntil * Azure.ResourceManager.Compute.Models.SnapshotPatch * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.SnapshotResource>
Public Overridable Function Update (waitUntil As WaitUntil, patch As SnapshotPatch, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of SnapshotResource)

Parameter

waitUntil
WaitUntil

Completed , wenn die Methode auf die Rückgabe warten soll, bis der lange ausgeführte Vorgang für den Dienst abgeschlossen ist; Started , wenn es nach dem Starten des Vorgangs zurückgegeben werden soll. Weitere Informationen zu Vorgängen mit langer Ausführung finden Sie unter Beispiele für Azure.Core-Long-Running-Vorgänge.

patch
SnapshotPatch

Momentaufnahmeobjekt, das im Textkörper des Patch-Momentaufnahme-Vorgangs angegeben wird.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

patch ist NULL.

Gilt für: