Partager via


EnergyServiceResource.RemovePartitionAsync Méthode

Définition

Méthode appelée si une nouvelle partition doit être supprimée d’une ressource.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OpenEnergyPlatform/energyServices/{resourceName}/removePartition
  • Opération IdEnergyServices_RemovePartition
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EnergyServices.Models.DataPartitionAddOrRemoveContent>> RemovePartitionAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.EnergyServices.Models.DataPartitionAddOrRemoveContent content = default, System.Threading.CancellationToken cancellationToken = default);
abstract member RemovePartitionAsync : Azure.WaitUntil * Azure.ResourceManager.EnergyServices.Models.DataPartitionAddOrRemoveContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EnergyServices.Models.DataPartitionAddOrRemoveContent>>
override this.RemovePartitionAsync : Azure.WaitUntil * Azure.ResourceManager.EnergyServices.Models.DataPartitionAddOrRemoveContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EnergyServices.Models.DataPartitionAddOrRemoveContent>>
Public Overridable Function RemovePartitionAsync (waitUntil As WaitUntil, Optional content As DataPartitionAddOrRemoveContent = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of DataPartitionAddOrRemoveContent))

Paramètres

waitUntil
WaitUntil

Completed si la méthode doit attendre pour retourner jusqu’à ce que l’opération de longue durée soit terminée sur le service ; Started si elle doit être retournée 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 de Long-Running Azure.Core.

content
DataPartitionAddOrRemoveContent

supprimer la charge utile de l’action de partition.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

S’applique à