Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Support.Utility.UrlFor Method

Returns a URL with query string, given a type implementing a controller, and an action name.

Class: YetaWF.Core.Support.Utility
Namespace: YetaWF.Core.Support
Assembly: YetaWF.Core

Syntax

public static string UrlFor(
    Type type,
    string actionName,
    object? args = null );

Parameters

type

The type of the controller.

actionName

The action name implemented by the controller.

args

An optional array of arguments that are translated to query string parameters.

Return Value

A formatted URL for the current site (without scheme or domain).

See Also YetaWF.Core.Support.Utility ClassYetaWF.Core Overview