IOutputCachePolicyProvider.GetPolicyAsync(String) Method

Definition

Gets a IOutputCachePolicy from the given policyName.

public System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.OutputCaching.IOutputCachePolicy?> GetPolicyAsync(string policyName);
abstract member GetPolicyAsync : string -> System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.OutputCaching.IOutputCachePolicy>
Public Function GetPolicyAsync (policyName As String) As ValueTask(Of IOutputCachePolicy)

Parameters

policyName
String

The policy name to retrieve.

Returns

The named IOutputCachePolicy.

Applies to