InventoryItemCollection.CreateOrUpdate Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Créer ou mettre à jour InventoryItem.
- Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/vcenters/{vcenterName}/inventoryItems/{inventoryItemName}
- IdInventoryItems_Create d’opération
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ConnectedVMwarevSphere.InventoryItemResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string inventoryItemName, Azure.ResourceManager.ConnectedVMwarevSphere.InventoryItemData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.ConnectedVMwarevSphere.InventoryItemData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ConnectedVMwarevSphere.InventoryItemResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.ConnectedVMwarevSphere.InventoryItemData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ConnectedVMwarevSphere.InventoryItemResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, inventoryItemName As String, data As InventoryItemData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of InventoryItemResource)
Paramètres
- waitUntil
- WaitUntil
Completed si la méthode doit attendre la fin de l’opération de longue durée sur le service ; Started s’il doit retourner après le démarrage de l’opération. Pour plus d’informations sur les opérations de longue durée, consultez Exemples d’opérations Azure.Core Long-Running.
- inventoryItemName
- String
Nom de l’objet inventoryItem.
- data
- InventoryItemData
Charge utile de la demande.
- cancellationToken
- CancellationToken
Jeton d’annulation à utiliser.
Retours
Exceptions
inventoryItemName
est une chaîne vide, et on s’attendait à ce qu’elle ne soit pas vide.
inventoryItemName
ou data
est null.
S’applique à
Azure SDK for .NET
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour