Freigeben über


KustoDatabaseCollection.GetIfExistsAsync(String, CancellationToken) Methode

Definition

Versucht, Details für diese Ressource vom Dienst abzurufen.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}
  • Vorgangs-IdDatabases_Get
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Kusto.KustoDatabaseResource>> GetIfExistsAsync (string databaseName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Kusto.KustoDatabaseResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Kusto.KustoDatabaseResource>>
Public Overridable Function GetIfExistsAsync (databaseName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of KustoDatabaseResource))

Parameter

databaseName
String

Der Name der Datenbank im Kusto-Cluster.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

databaseName ist NULL.

Gilt für: