Freigeben über


MySqlQueryStatisticCollection.GetIfExists(String, CancellationToken) Methode

Definition

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

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/topQueryStatistics/{queryStatisticId}
  • Vorgangs-IdTopQueryStatistics_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.MySql.MySqlQueryStatisticResource> GetIfExists (string queryStatisticId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.MySql.MySqlQueryStatisticResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.MySql.MySqlQueryStatisticResource>
Public Overridable Function GetIfExists (queryStatisticId As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of MySqlQueryStatisticResource)

Parameter

queryStatisticId
String

Der Abfragestatistikbezeichner.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

queryStatisticId ist NULL.

Gilt für: