Click or drag to resize

ItemFromItemInKnownFolderNoFolder Method

Gets an Item instance from a name and a known folder identifier. If name is null, an item representing the known folder will be returned. Never returns a Folder instance to avoid IShellFolder bindings and possible loops or hangs.

Namespace:  callback.ShellBoost.Core.WindowsShell
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static Item FromItemInKnownFolderNoFolder(
	Guid knownFolderId,
	string name = null,
	KNOWN_FOLDER_FLAG flags = KNOWN_FOLDER_FLAG.KF_FLAG_DEFAULT,
	bool throwOnError = true
)

Parameters

knownFolderId
Type: SystemGuid
The known folder identifier.
name (Optional)
Type: SystemString
The name.
flags (Optional)
Type: callback.ShellBoost.Core.WindowsShellKNOWN_FOLDER_FLAG
The flags.
throwOnError (Optional)
Type: SystemBoolean
true to throw error; otherwise false.

Return Value

Type: Item
An Item instance or null.
See Also