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

WebTestsOperationsExtensions.CreateOrUpdateAsync 方法

定义

创建或更新 Application Insights Web 测试定义。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ApplicationInsights.Management.Models.WebTest> CreateOrUpdateAsync (this Microsoft.Azure.Management.ApplicationInsights.Management.IWebTestsOperations operations, string resourceGroupName, string webTestName, Microsoft.Azure.Management.ApplicationInsights.Management.Models.WebTest webTestDefinition, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.ApplicationInsights.Management.IWebTestsOperations * string * string * Microsoft.Azure.Management.ApplicationInsights.Management.Models.WebTest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ApplicationInsights.Management.Models.WebTest>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IWebTestsOperations, resourceGroupName As String, webTestName As String, webTestDefinition As WebTest, Optional cancellationToken As CancellationToken = Nothing) As Task(Of WebTest)

参数

operations
IWebTestsOperations

此扩展方法的操作组。

resourceGroupName
String

资源组的名称。 此名称不区分大小写。

webTestName
String

Application Insights Webtest 资源的名称。

webTestDefinition
WebTest

需要指定以创建或更新 Application Insights Web 测试定义的属性。

cancellationToken
CancellationToken

取消标记。

返回

适用于