Share via


OutputCacheAttribute.VaryByCustom Property

Gets or sets the vary-by-custom value.

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

Syntax

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

Property Value

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

Remarks

Any text that represents custom output-caching requirements.

See Also

Reference

OutputCacheAttribute Class

System.Web.Mvc Namespace