This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.
Returns true if the given State variable exists. Note: Request.State is a wrapper around the HttpContext.Items collection.

Namespace: Smartsite.Runtime.Modules
Assembly:  Smartsite.Runtime.Modules (in Smartsite.Runtime.Modules.dll)

Syntax

C#Copy imageCopy Code
[(Name = "{0}.State.Exists")]
[(.Level1)]
public static <bool> StateVariableExists(
	 context,
	string name
)
Visual Basic (Declaration)Copy imageCopy Code
<(Name := "{0}.State.Exists")> _
<(.Level1)> _
Public Shared Function StateVariableExists ( _
	context As , _
	name As  _
) As (Of )

Parameters

context
IRenderContext
Context object.
name
String
The name of the state variable.

Return Value

Boolean indicating if specified state variable exists.

See Also

Advanced