Click or drag to resize

ExtensionsCreateShellDataObject Method

Creates a data object in a parent folder. This will automatically add CF_HDROP, CFSTR_FILENAME and CFSTR_SHELLIDLIST formats.

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static Object CreateShellDataObject(
	this IEnumerable<IWithIdList> idLists,
	IDataObject inner = null,
	bool throwOnError = true
)

Parameters

idLists
Type: System.Collections.GenericIEnumerableIWithIdList
An optional list of PIDLs. They all must be in a common folder (possibly the desktop).
inner (Optional)
Type: System.Runtime.InteropServices.ComTypesIDataObject
An optional inner IDataObject.
throwOnError (Optional)
Type: SystemBoolean
if set to true errors may be throw in case of Windows Shell errors.

Return Value

Type: Object
A COM Object that implements the native COM IDataObject.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableIWithIdList. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also