Skip to main content

MenuParameters

The MenuParameters class extends BaseParameters and represents parameters related to menu configurations.

Constructors

NameDescription
MenuParameters(parameters)Initializes a new instance of the MenuParameters class with the specified parameters.

Methods

NameDescription
GetValueAsBool(key)Retrieves the value associated with the specified key as a bool.
GetValueAsByte(key)Retrieves the value associated with the specified key as a byte.
GetValueAsChar(key)Retrieves the value associated with the specified key as a char.
GetValueAsShort(key)Retrieves the value associated with the specified key as a short.
GetValueAsInt(key)Retrieves the value associated with the specified key as a int.
GetValueAsString(key)Retrieves the value associated with the specified key as a string.
GetValueJsonAsType<T>(key)Deserializes a JSON string stored under the given key into an object of type T.
GetValueAsDecimal(key)Retrieves the value associated with the specified key as a decimal.
GetValueAsUlong(key)Retrieves the value associated with the specified key as a ulong.
GetValueAsDouble(key)Retrieves the value associated with the specified key as a double.
GetValueAsT<T>(key)Retrieves the value associated with the specified key and converts it to the specified type T.
GetValueJsonAsType(key, type)Deserializes a JSON string stored under the given key into an object of the specified type.
GetValueAsTimeSpan(key)Retrieves the value associated with the specified key as a TimeSpan.
GetValueAsUshort(key)Retrieves the value associated with the specified key as a ushort.
GetValueAsFloat(key)Retrieves the value associated with the specified key as a float.
GetValueAsUint(key)Retrieves the value associated with the specified key as a uint.
GetValueAsDateTime(key)Retrieves the value associated with the specified key as a DateTime.
GetValueAsDateTimeOffset(key)Retrieves the value associated with the specified key as a DateTimeOffset.
GetValueAsSbyte(key)Retrieves the value associated with the specified key as a sbyte.
GetValueAsLong(key)Retrieves the value associated with the specified key as a long.