Partager via


ApplicationInsightsComponentResource.CreateWorkItemConfigurationAsync Méthode

Définition

Créer une configuration d’élément de travail pour un composant Application Insights.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs
  • IdWorkItemConfigurations_Create d’opération
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.WorkItemConfiguration>> CreateWorkItemConfigurationAsync (Azure.ResourceManager.ApplicationInsights.Models.WorkItemCreateConfiguration workItemConfigurationProperties, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateWorkItemConfigurationAsync : Azure.ResourceManager.ApplicationInsights.Models.WorkItemCreateConfiguration * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.WorkItemConfiguration>>
override this.CreateWorkItemConfigurationAsync : Azure.ResourceManager.ApplicationInsights.Models.WorkItemCreateConfiguration * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.WorkItemConfiguration>>
Public Overridable Function CreateWorkItemConfigurationAsync (workItemConfigurationProperties As WorkItemCreateConfiguration, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of WorkItemConfiguration))

Paramètres

workItemConfigurationProperties
WorkItemCreateConfiguration

Propriétés qui doivent être spécifiées pour créer une configuration d’élément de travail d’un composant Application Insights.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

workItemConfigurationProperties a la valeur null.

S’applique à