Create a new category list and initialize it from the string.

Namespace:  EPiServer.Core
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
public CategoryList(
	string complexReference,
	int categoryType
)

Parameters

complexReference
Type: System..::.String
The string with categories.
categoryType
Type: System..::.Int32
The type of category list, i e then generic page catgeory (categoryType = 0) or a specific categrory property (categoryType = page definition type if)

Remarks

The format of the initialization string is assumed to be a comma-separated list of integers, i e "3,45,76,89".

If a value cannot be parsed as an integer, a FormatException is thrown.

See Also