次の方法で共有


OutputCacheAttribute.VaryByHeader Property

Gets or sets the vary-by-header value.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public Property VaryByHeader As String
    Get
    Set
public string VaryByHeader { get; set; }
public:
property String^ VaryByHeader {
    String^ get ();
    void set (String^ value);
}

Property Value

Type: System.String
The vary-by-header value.

Remarks

A semicolon-separated list of HTTP headers that are used to vary the output cache.

See Also

Reference

OutputCacheAttribute Class

System.Web.Mvc Namespace