PathAttribute

Sets a ViewData["Path"] value for an action or controller.

Namespace:
Inetdev.AspNetCore
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No
Inherits from:
Microsoft.AspNetCore.Mvc.Filters.ActionFilterAttribute

Constructors

PathAttribute

Default constructor

Signature:
public Void PathAttribute()

Properties

Names

The names of the resources used to conforms a path.

Signature:
public String[] Names { get; set; }

PathSeparator

The separator to saparate the path nodes.

Signature:
public String PathSeparator { get; set; }

ResourceType

The type of localization resource.

Signature:
public Type ResourceType { get; set; }

Methods

OnActionExecuting

Sets the ViewData["Path"] element with a localized data from the Names.

Signature:
public Void OnActionExecuting(context)
Parameters
Name Type Summary
context ActionExecutingContext The ActionExecutingContext.
Exceptions
Type Summary
ArgumentNullException Thrown when context is null.