Partager via


ServiceResourceCollection.GetAsync(String, CancellationToken) Méthode

Définition

Obtient le service.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}/services/{serviceName}
  • IdServices_Get d’opération
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DeploymentManager.ServiceResource>> GetAsync (string serviceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DeploymentManager.ServiceResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DeploymentManager.ServiceResource>>
Public Overridable Function GetAsync (serviceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ServiceResource))

Paramètres

serviceName
String

Nom de la ressource de service.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

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

serviceName a la valeur null.

S’applique à