Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Support.YetaWFManager.TryGetUrlArg Method

Used to retrieve URL query string arguments (outside of a controller).

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

Syntax

public bool TryGetUrlArg<TYPE>(
    string arg,
    out TYPE?? val,
    TYPE? dflt = null );

Parameters

arg

The name of the query string argument.

val

Returns the query string argument. If the argument is not available, the type's default value is returned.

dflt

An optional value, which is returned if the argument is not available.

Return Value

true if the argument was found, false otherwise.

Remarks

This would not be used in a controller as these have access to all arguments via their parameter list. This is typically only used in a module action that is dynamically added by a module.

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