Partager via


SqlMigrationServiceCollection.GetAsync(String, CancellationToken) Méthode

Définition

Récupérer le Database Migration Service

  • Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}
  • IdSqlMigrationServices_Get d’opération
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataMigration.SqlMigrationServiceResource>> GetAsync (string sqlMigrationServiceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataMigration.SqlMigrationServiceResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataMigration.SqlMigrationServiceResource>>
Public Overridable Function GetAsync (sqlMigrationServiceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SqlMigrationServiceResource))

Paramètres

sqlMigrationServiceName
String

Nom du service de migration SQL.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

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

sqlMigrationServiceName a la valeur null.

S’applique à