Sitecore 5.1.1 API

State.SetCustom Method 

Sets a custom State variable.

[Visual Basic]
Public Shared Sub SetCustom( _
   ByVal name As String, _
   ByVal _value As Object _
)
[C#]
public static void SetCustom(
   string name,
   object _value
);

Parameters

name
The name of the State variable.
_value
The value of the State variable.

Remarks

A custom state variable is stored in the Session object under the name "SC_CUSTOM_" + name.

See Also

State Class | Sitecore.Configuration Namespace | GetCustom