Click or drag to resize

NamespaceTreeControlGetItemState Method (Item, NSTCITEMSTATE, NSTCITEMSTATE, Boolean)

Gets state information about a Shell item.

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

Parameters

item
Type: ShellBoost.Core.WindowsShellItem
The item.
mask
Type: ShellBoost.Core.WindowsShellNSTCITEMSTATE
Specifies which information is being requested, in the form of a bitmap. One or more of the NSTCITEMSTATE constants.
state
Type: ShellBoost.Core.WindowsShellNSTCITEMSTATE
Contains the values requested in mask.
throwOnError (Optional)
Type: SystemBoolean
true to throw error; otherwise false.

Return Value

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