Partilhar via


LoadTestingResourceCollection.GetAsync(String, CancellationToken) Método

Definição

Obter um recurso LoadTest.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}
  • IdLoadTests_Get de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.LoadTesting.LoadTestingResource>> GetAsync (string loadTestName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.LoadTesting.LoadTestingResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.LoadTesting.LoadTestingResource>>
Public Overridable Function GetAsync (loadTestName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of LoadTestingResource))

Parâmetros

loadTestName
String

Nome do teste de carga.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

loadTestName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

loadTestName é nulo.

Aplica-se a