Partager via


InventoryItemCollection.GetAsync(String, CancellationToken) Méthode

Définition

Implémente la méthode GET InventoryItem.

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

Paramètres

inventoryItemName
String

Nom de l’objet inventoryItem.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

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

inventoryItemName a la valeur null.

S’applique à