OutputCachePolicyBuilder.SetVaryByRouteValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetVaryByRouteValue(String[]) |
Adds a policy to vary the cached responses by route value. |
SetVaryByRouteValue(String, String[]) |
Adds a policy to vary the cached responses by route value. |
SetVaryByRouteValue(String[])
- Source:
- OutputCachePolicyBuilder.cs
Adds a policy to vary the cached responses by route value.
public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetVaryByRouteValue (string[] routeValueNames);
member this.SetVaryByRouteValue : string[] -> Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder
Public Function SetVaryByRouteValue (routeValueNames As String()) As OutputCachePolicyBuilder
Parameters
- routeValueNames
- String[]
The route value names to vary the cached responses by.
Returns
Applies to
SetVaryByRouteValue(String, String[])
- Source:
- OutputCachePolicyBuilder.cs
Adds a policy to vary the cached responses by route value.
public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetVaryByRouteValue (string routeValueName, params string[] routeValueNames);
member this.SetVaryByRouteValue : string * string[] -> Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder
Public Function SetVaryByRouteValue (routeValueName As String, ParamArray routeValueNames As String()) As OutputCachePolicyBuilder
Parameters
- routeValueName
- String
The route value name to vary the cached responses by.
- routeValueNames
- String[]
The extra route value names to vary the cached responses by.