Click or drag to resize

ItemFromIDListNoFolder Method (IntPtr, Boolean)

Gets an Item instance from a PIDL. Never returns a Folder instance to avoid IShellFolder bindings and possible loops or hangs.

Namespace:  ShellBoost.Core.WindowsShell
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static Item FromIDListNoFolder(
	IntPtr pidl,
	bool throwOnError = true
)

Parameters

pidl
Type: SystemIntPtr
The pidl.
throwOnError (Optional)
Type: SystemBoolean
true to throw error; otherwise false.

Return Value

Type: Item
An Item instance or null.
Exceptions
ExceptionCondition
ArgumentExceptionpidl is IntPtr.Zero.
See Also