语言

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

ContainerAppManagedEnvironmentDaprComponentResource.GetDaprComponentResiliencyPolicyAsync Method

Definition

Gets the details of a resiliency policy for a Dapr component.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppContainers.DaprComponentResiliencyPolicyResource>> GetDaprComponentResiliencyPolicyAsync(string name, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDaprComponentResiliencyPolicyAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppContainers.DaprComponentResiliencyPolicyResource>>
override this.GetDaprComponentResiliencyPolicyAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppContainers.DaprComponentResiliencyPolicyResource>>
Public Overridable Function GetDaprComponentResiliencyPolicyAsync (name As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DaprComponentResiliencyPolicyResource))

Parameters

name
String

Name of the Dapr Component Resiliency Policy.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

name is null.

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

Applies to