Show / Hide Table of Contents

Class StateVariable<T>

Inheritance
object
StateVariable<T>
SessionVariable<T>
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DotNetNuke.Common.Utilities
Assembly: DotNetNuke.dll
Syntax
public abstract class StateVariable<T>
Type Parameters
Name Description
T

Constructors

StateVariable(string)

Declaration
protected StateVariable(string key)
Parameters
Type Name Description
string key

StateVariable(string, Func<T>)

Declaration
protected StateVariable(string key, Func<T> initializer)
Parameters
Type Name Description
string key
Func<T> initializer

Properties

HasValue

Declaration
public bool HasValue { get; }
Property Value
Type Description
bool

this[string]

Declaration
protected abstract object this[string key] { get; set; }
Parameters
Type Name Description
string key
Property Value
Type Description
object

Value

Declaration
public T Value { get; set; }
Property Value
Type Description
T

ValueOrDefault

Declaration
public T ValueOrDefault { get; }
Property Value
Type Description
T

Methods

Clear()

Declaration
public void Clear()

Remove(string)

Declaration
protected abstract void Remove(string key)
Parameters
Type Name Description
string key

Extension Methods

JsonExtensionsWeb.ToJson(object)
Back to top by the community, for the community... #DNNCMS