Sitecore 5.1.1 API

State.GetCustom Method 

Gets a custom State variable.

[Visual Basic]
Public Shared Function GetCustom( _
   ByVal name As String _
) As Object
[C#]
public static object GetCustom(
   string name
);

Parameters

name
The name of the State variable.

Return 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 | SetCustom