Click or drag to resize

ShellFolder.TryParseItem Method

Parses a display name for a Shell Item that may not exist. This method is only implemented for file system Shell Items. It will use the CreateFileSystemItem and CreateFileSystemFolder that you can override if you want it to use your derived classes instead. If you override it, make sure you also override TryGetDisplayName, TryGetAttributes and TryGetPropertyValue in a consistent manner.

Namespace:  callback.ShellBoost.Core
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public virtual bool TryParseItem(
	ShellBindContext context,
	string displayName,
	out int eatenCharacters,
	out SFGAO attributes,
	out ShellItemIdList relativeIdList
)

Parameters

context
Type: callback.ShellBoost.Core.ShellBindContext
The context corresponding to the original IBindCxt interface.
displayName
Type: System.String
The display name.
eatenCharacters
Type: System.Int32
The number of characters of the display name that was parsed.
attributes
Type: callback.ShellBoost.Core.WindowsShell.SFGAO
Attributes of the virtual item that was parsed.
relativeIdList
Type: callback.ShellBoost.Core.ShellItemIdList
The relative PIDL.

Return Value

Type: Boolean
true if parsing was successful, false otherwise.
Exceptions
ExceptionCondition
ArgumentNullExceptioncontext or displayName is null.
See Also