Partilhar via


ContainerAppManagedEnvironmentDaprComponentCollection.GetAsync Método

Definição

Obter um componente dapr.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}
  • Operação IdDaprComponents_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppContainers.ContainerAppManagedEnvironmentDaprComponentResource>> GetAsync (string componentName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppContainers.ContainerAppManagedEnvironmentDaprComponentResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppContainers.ContainerAppManagedEnvironmentDaprComponentResource>>
Public Overridable Function GetAsync (componentName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ContainerAppManagedEnvironmentDaprComponentResource))

Parâmetros

componentName
String

Nome do componente Dapr.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

componentName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

componentName é nulo.

Aplica-se a