Partager via


DataMigrationExtensions.GetSqlMigrationService 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 static Azure.Response<Azure.ResourceManager.DataMigration.SqlMigrationServiceResource> GetSqlMigrationService (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string sqlMigrationServiceName, System.Threading.CancellationToken cancellationToken = default);
static member GetSqlMigrationService : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DataMigration.SqlMigrationServiceResource>
<Extension()>
Public Function GetSqlMigrationService (resourceGroupResource As ResourceGroupResource, sqlMigrationServiceName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SqlMigrationServiceResource)

Paramètres

resourceGroupResource
ResourceGroupResource

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

sqlMigrationServiceName
String

Nom du service de migration SQL.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

sqlMigrationServiceName est une chaîne vide, et on s’attendait à ce qu’elle ne soit pas vide.

sqlMigrationServiceName a la valeur null.

S’applique à