你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DataMigrationExtensions.GetSqlMigrationServices 方法

定义

重载

GetSqlMigrationServices(ResourceGroupResource)

获取 ResourceGroupResource 中 SqlMigrationServiceResources 的集合。

GetSqlMigrationServices(SubscriptionResource, CancellationToken)

检索订阅中的所有 SQL 迁移服务。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/sqlMigrationServices
  • 操作IdSqlMigrationServices_ListBySubscription

GetSqlMigrationServices(ResourceGroupResource)

获取 ResourceGroupResource 中 SqlMigrationServiceResources 的集合。

public static Azure.ResourceManager.DataMigration.SqlMigrationServiceCollection GetSqlMigrationServices (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetSqlMigrationServices : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.DataMigration.SqlMigrationServiceCollection
<Extension()>
Public Function GetSqlMigrationServices (resourceGroupResource As ResourceGroupResource) As SqlMigrationServiceCollection

参数

resourceGroupResource
ResourceGroupResource

方法 ResourceGroupResource 将对其执行的实例。

返回

一个 对象,表示 SqlMigrationServiceResources 的集合及其在 SqlMigrationServiceResource 上的操作。

适用于

GetSqlMigrationServices(SubscriptionResource, CancellationToken)

检索订阅中的所有 SQL 迁移服务。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/sqlMigrationServices
  • 操作IdSqlMigrationServices_ListBySubscription
public static Azure.Pageable<Azure.ResourceManager.DataMigration.SqlMigrationServiceResource> GetSqlMigrationServices (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetSqlMigrationServices : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.DataMigration.SqlMigrationServiceResource>
<Extension()>
Public Function GetSqlMigrationServices (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SqlMigrationServiceResource)

参数

subscriptionResource
SubscriptionResource

方法 SubscriptionResource 将对其执行的实例。

cancellationToken
CancellationToken

要使用的取消标记。

返回

的集合 SqlMigrationServiceResource ,可能需要多个服务请求才能循环访问。

适用于