Sets a ViewData["Header"] value for an action or controller.
Initializes a new instance of HeaderAttribute.
public Void HeaderAttribute(header)
Name | Type | Summary |
---|---|---|
header | String | The header to show or a resource name. |
Type | Summary |
---|---|
ArgumentNullOrEmptyException | Thrown when header is null or empty. |
Value of the header.
public String Header { get; set; }
The type of localization resources.
public Type ResourceType { get; set; }
Sets the ViewData["Header"] element with a localized data from the header.
public Void OnActionExecuting(context)
Name | Type | Summary |
---|---|---|
context | ActionExecutingContext | The ActionExecutingContext. |
Type | Summary |
---|---|
ArgumentNullException | Thrown when context is null. |
In this document