Click or drag to resize

CustomFileListTCreateListItem Method

Creates a new ListItem

Namespace:  Jam.Shell
Assembly:  ShellBrowser (in ShellBrowser.dll) Version: 6.1
Syntax
protected T CreateListItem(
	string p_Path,
	bool p_Checked,
	bool p_CheckDuplicates,
	ItemIdList absoluteItemIdList,
	out bool p_PathAlreadyExisted
)

Parameters

p_Path
Type: SystemString
The absolute path to create a list item for.
p_Checked
Type: SystemBoolean
The checked state of the newly created item
p_CheckDuplicates
Type: SystemBoolean
Forces to check for a duplicate O(n), even if the AllowDuplicates functionality is disabled and therefore no Dictionary<Path,Item> datastructure is available.
absoluteItemIdList
Type: Jam.ShellItemIdList
pass the absolute ItemIdList for the element if availabe. This will speed up later actions like sorting/displaying
p_PathAlreadyExisted
Type: SystemBoolean
Is true, if the p_CheckDuplicates was true and a duplicate path entry has been found. Is true if the property AllowDuplicates is false and the fullpath was found in the dictionary.

Return Value

Type: T
The newly created ListItem, or if p_PathAlreadyExisted is true, the existing item instance.
See Also