Click or drag to resize

NamespaceTreeControlSetItemState Method (Item, NSTCITEMSTATE, Boolean)

Sets state information for a Shell item.

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

Parameters

item
Type: callback.ShellBoost.Core.WindowsShellItem
The Shell item for which to set the state.
state
Type: callback.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