Table of Contents

Method GetParam

Namespace
Innova.Prism.Infrastructure.Views
Assembly
Innova.Prism.Infrastructure.dll

GetParam(string)

Gets the value of a parameter from the view state.

public object GetParam(string paramName)

Parameters

paramName string

The name of the parameter.

Returns

object

The value of the parameter, or null if the parameter does not exist.

GetParam<T>(string)

Gets the value of a parameter from the view state and converts it to the specified type.

public T GetParam<T>(string paramName)

Parameters

paramName string

The name of the parameter.

Returns

T

The value of the parameter converted to the specified type, or the default value of the type if the parameter does not exist or cannot be converted.

Type Parameters

T

The type to convert the parameter value to.