Partager via


SqlExtensions.GetVirtualClusterAsync Méthode

Définition

Obtient un cluster virtuel.

  • Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/virtualClusters/{virtualClusterName}
  • IdVirtualClusters_Get d’opération
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.VirtualClusterResource>> GetVirtualClusterAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string virtualClusterName, System.Threading.CancellationToken cancellationToken = default);
static member GetVirtualClusterAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.VirtualClusterResource>>
<Extension()>
Public Function GetVirtualClusterAsync (resourceGroupResource As ResourceGroupResource, virtualClusterName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of VirtualClusterResource))

Paramètres

resourceGroupResource
ResourceGroupResource

Instance ResourceGroupResource sur laquelle la méthode s’exécute.

virtualClusterName
String

Nom du cluster virtuel.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

virtualClusterName est une chaîne vide et devait être non vide.

virtualClusterName a la valeur null.

S’applique à