Partager via


PrivateStoreCollectionOfferOperationsExtensions.CreateOrUpdateAsync Méthode

Définition

Mettre à jour ou ajouter une offre à une collection spécifique du magasin privé.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Marketplace.Models.Offer> CreateOrUpdateAsync (this Microsoft.Azure.Management.Marketplace.IPrivateStoreCollectionOfferOperations operations, string privateStoreId, string offerId, string collectionId, Microsoft.Azure.Management.Marketplace.Models.Offer payload = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Marketplace.IPrivateStoreCollectionOfferOperations * string * string * string * Microsoft.Azure.Management.Marketplace.Models.Offer * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Marketplace.Models.Offer>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IPrivateStoreCollectionOfferOperations, privateStoreId As String, offerId As String, collectionId As String, Optional payload As Offer = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Offer)

Paramètres

operations
IPrivateStoreCollectionOfferOperations

Groupe d’opérations pour cette méthode d’extension.

privateStoreId
String

ID de magasin : doit utiliser l’ID de locataire

offerId
String

ID de l’offre à mettre à jour ou à supprimer

collectionId
String

ID de collection

payload
Offer
cancellationToken
CancellationToken

Jeton d'annulation.

Retours

S’applique à