Freigeben über


AppPlatformServiceCollection.GetAsync(String, CancellationToken) Methode

Definition

Ruft einen Dienst und seine Eigenschaften ab.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}
  • Vorgangs-IdServices_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppPlatform.AppPlatformServiceResource>> GetAsync (string serviceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppPlatform.AppPlatformServiceResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppPlatform.AppPlatformServiceResource>>
Public Overridable Function GetAsync (serviceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AppPlatformServiceResource))

Parameter

serviceName
String

Der Name der Dienstressource.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

serviceName ist NULL.

Gilt für: