Share via


OutputCachePolicyBuilder.SetCacheKeyPrefix Método

Definição

Sobrecargas

SetCacheKeyPrefix(Func<HttpContext,String>)
SetCacheKeyPrefix(Func<HttpContext,CancellationToken,ValueTask<String>>)
SetCacheKeyPrefix(String)

SetCacheKeyPrefix(Func<HttpContext,String>)

public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetCacheKeyPrefix (Func<Microsoft.AspNetCore.Http.HttpContext,string> keyPrefix);
member this.SetCacheKeyPrefix : Func<Microsoft.AspNetCore.Http.HttpContext, string> -> Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder
Public Function SetCacheKeyPrefix (keyPrefix As Func(Of HttpContext, String)) As OutputCachePolicyBuilder

Parâmetros

keyPrefix
Func<HttpContext,String>

Retornos

Aplica-se a

SetCacheKeyPrefix(Func<HttpContext,CancellationToken,ValueTask<String>>)

public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetCacheKeyPrefix (Func<Microsoft.AspNetCore.Http.HttpContext,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<string>> keyPrefix);
member this.SetCacheKeyPrefix : Func<Microsoft.AspNetCore.Http.HttpContext, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<string>> -> Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder
Public Function SetCacheKeyPrefix (keyPrefix As Func(Of HttpContext, CancellationToken, ValueTask(Of String))) As OutputCachePolicyBuilder

Parâmetros

Retornos

Aplica-se a

SetCacheKeyPrefix(String)

public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetCacheKeyPrefix (string keyPrefix);
member this.SetCacheKeyPrefix : string -> Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder
Public Function SetCacheKeyPrefix (keyPrefix As String) As OutputCachePolicyBuilder

Parâmetros

keyPrefix
String

Retornos

Aplica-se a