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

LoadTestAdministrationClient.GetTestProfile Method

Definition

Overloads

GetTestProfile(String, CancellationToken)

Get load test profile details.

GetTestProfile(String, RequestContext)

[Protocol Method] Get load test profile details.

GetTestProfile(String, CancellationToken)

Source:
LoadTestAdministrationClient.cs

Get load test profile details.

public virtual Azure.Response<Azure.Developer.LoadTesting.TestProfile> GetTestProfile(string testProfileId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetTestProfile : string * System.Threading.CancellationToken -> Azure.Response<Azure.Developer.LoadTesting.TestProfile>
override this.GetTestProfile : string * System.Threading.CancellationToken -> Azure.Response<Azure.Developer.LoadTesting.TestProfile>
Public Overridable Function GetTestProfile (testProfileId As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of TestProfile)

Parameters

testProfileId
String

Unique identifier for the test profile, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

testProfileId is null.

testProfileId is an empty string, and was expected to be non-empty.

Remarks

Get load test profile details by test profile Id.

Applies to

GetTestProfile(String, RequestContext)

Source:
LoadTestAdministrationClient.cs

[Protocol Method] Get load test profile details.

public virtual Azure.Response GetTestProfile(string testProfileId, Azure.RequestContext context);
abstract member GetTestProfile : string * Azure.RequestContext -> Azure.Response
override this.GetTestProfile : string * Azure.RequestContext -> Azure.Response
Public Overridable Function GetTestProfile (testProfileId As String, context As RequestContext) As Response

Parameters

testProfileId
String

Unique identifier for the test profile, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.

context
RequestContext

The request context, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

testProfileId is null.

testProfileId is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to