你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ApplicationInsightsComponentResource.UpdateItemWorkItemConfiguration 方法

定义

更新 Application Insights 组件的工作项配置。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs/{workItemConfigId}
  • 操作IdWorkItemConfigurations_UpdateItem
public virtual Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.WorkItemConfiguration> UpdateItemWorkItemConfiguration (string workItemConfigId, Azure.ResourceManager.ApplicationInsights.Models.WorkItemCreateConfiguration workItemConfigurationProperties, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateItemWorkItemConfiguration : string * Azure.ResourceManager.ApplicationInsights.Models.WorkItemCreateConfiguration * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.WorkItemConfiguration>
override this.UpdateItemWorkItemConfiguration : string * Azure.ResourceManager.ApplicationInsights.Models.WorkItemCreateConfiguration * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.WorkItemConfiguration>
Public Overridable Function UpdateItemWorkItemConfiguration (workItemConfigId As String, workItemConfigurationProperties As WorkItemCreateConfiguration, Optional cancellationToken As CancellationToken = Nothing) As Response(Of WorkItemConfiguration)

参数

workItemConfigId
String

唯一的工作项配置 ID。这可以是连接器配置中定义的连接器的友好名称。

workItemConfigurationProperties
WorkItemCreateConfiguration

需要指定以更新此 Application Insights 组件的工作项配置的属性。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

workItemConfigId 是一个空字符串,预期为非空。

workItemConfigIdworkItemConfigurationProperties 为 null。

适用于