Click or drag to resize

CoreShellFolderParseDisplayName Method (IntPtr, String, IBindCtx, SFGAO, Boolean)

Translates the display name of a file object or a folder into an item identifier list.

Namespace:  ShellBoost.Core.WindowsShell
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public Tuple<int, ShellItemIdList, SFGAO> ParseDisplayName(
	IntPtr hwnd,
	string displayName,
	IBindCtx context = null,
	SFGAO attributesMask = SFGAO.SFGAO_NONE,
	bool throwOnError = true
)

Parameters

hwnd
Type: SystemIntPtr
A window handle. The client should provide a window handle if it displays a dialog or message box.
displayName
Type: SystemString
The display name.
context (Optional)
Type: System.Runtime.InteropServices.ComTypesIBindCtx
A pointer to a bind context used to pass parameters as inputs and outputs to the parsing function.
attributesMask (Optional)
Type: ShellBoost.Core.WindowsShellSFGAO
The attributes mask.
throwOnError (Optional)
Type: SystemBoolean
true to throw error; otherwise false.

Return Value

Type: TupleInt32, ShellItemIdList, SFGAO
A tuple representing the number of characters of the display name that was parsed (or 0), the identifier list of the object, and the attributes. The tuple can also be null.
Exceptions
ExceptionCondition
ArgumentNullExceptiondisplayName is null.
See Also