Click or drag to resize

NamespaceTreeControlSetItemState Method (Item, NSTCITEMSTATE, Boolean)

Sets state information for a Shell item.

Namespace:  ShellBoost.Core.WindowsShell
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public int SetItemState(
	Item item,
	NSTCITEMSTATE state,
	bool throwOnError = true
)

Parameters

item
Type: ShellBoost.Core.WindowsShellItem
The Shell item for which to set the state.
state
Type: ShellBoost.Core.WindowsShellNSTCITEMSTATE
Contains the values to set for the flags specified in mask.
throwOnError (Optional)
Type: SystemBoolean
true to throw error; otherwise false.

Return Value

Type: Int32
An error number or 0.
Exceptions
ExceptionCondition
ArgumentNullExceptionitem
See Also