Skip to content

NavigationLinkAttribute constructor (1 of 4)

Initializes a new instance of the NavigationLinkAttribute class.

public NavigationLinkAttribute(string path, string url, object? permission, string? icon = null)
parameter description
path The path.
url The URL.
permission The permission.
icon The icon.

See Also


NavigationLinkAttribute constructor (2 of 4)

Initializes a new instance of the NavigationLinkAttribute class.

public NavigationLinkAttribute(string path, Type controller, string? icon = null, 
    string action = "Index")
parameter description
path The path.
controller The controller to get the URL and action from.
icon The icon.
action The action name.

See Also


NavigationLinkAttribute constructor (3 of 4)

Initializes a new instance of the NavigationLinkAttribute class.

public NavigationLinkAttribute(int order, string path, string url, object? permission, 
    string? icon = null)
parameter description
order The order.
path The path.
url The URL.
permission The permission.
icon The icon.

See Also


NavigationLinkAttribute constructor (4 of 4)

Initializes a new instance of the NavigationLinkAttribute class.

public NavigationLinkAttribute(int order, string path, Type controller, string? icon = null, 
    string action = "Index")
parameter description
order The order.
path The path.
controller The controller to get the URL and action from.
icon The icon.
action The action name.

See Also