Freigeben über


CustomLocationCollection.GetAsync(String, CancellationToken) Methode

Definition

Ruft die Details von customLocation mit einer angegebenen Ressourcengruppe und einem angegebenen Namen ab.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}
  • Vorgangs-IdCustomLocations_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ExtendedLocations.CustomLocationResource>> GetAsync (string resourceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ExtendedLocations.CustomLocationResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ExtendedLocations.CustomLocationResource>>
Public Overridable Function GetAsync (resourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CustomLocationResource))

Parameter

resourceName
String

Name von benutzerdefinierten Speicherorten.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

resourceName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

resourceName ist NULL.

Gilt für: