Freigeben über


CdnEndpointResource.LoadContentAsync Methode

Definition

Lädt einen Inhalt vorab in CDN. Verfügbar für Verizon-Profile.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/load
  • Vorgang IdCdnEndpoints_LoadContent
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation> LoadContentAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Cdn.Models.LoadContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member LoadContentAsync : Azure.WaitUntil * Azure.ResourceManager.Cdn.Models.LoadContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
override this.LoadContentAsync : Azure.WaitUntil * Azure.ResourceManager.Cdn.Models.LoadContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
Public Overridable Function LoadContentAsync (waitUntil As WaitUntil, content As LoadContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation)

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.

content
LoadContent

Der Pfad zum zu ladenden Inhalt. Der Pfad sollte eine vollständige URL sein, z. B. "/pictures/city.png", die eine einzelne Datei lädt.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

content ist NULL.

Gilt für: