OutputCachePolicyBuilder.SetVaryByHeader 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
SetVaryByHeader(String, String[]) | |
SetVaryByHeader(String[]) |
SetVaryByHeader(String, String[])
public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetVaryByHeader (string headerName, params string[] headerNames);
member this.SetVaryByHeader : string * string[] -> Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder
Public Function SetVaryByHeader (headerName As String, ParamArray headerNames As String()) As OutputCachePolicyBuilder
Parameters
- headerName
- String
- headerNames
- String[]
Returns
Applies to
SetVaryByHeader(String[])
public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetVaryByHeader (string[] headerNames);
member this.SetVaryByHeader : string[] -> Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder
Public Function SetVaryByHeader (headerNames As String()) As OutputCachePolicyBuilder
Parameters
- headerNames
- String[]
Returns
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for