Partager via


StorageMoverExtensions.GetStorageMoverAsync Méthode

Définition

Obtient une ressource Storage Mover.

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

Paramètres

resourceGroupResource
ResourceGroupResource

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

storageMoverName
String

Nom de la ressource Storage Mover.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

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

storageMoverName a la valeur null.

S’applique à