Click or drag to resize

CoreShellFolderSetNameOf Method (IntPtr, String, SHGDNF, Boolean)

Sets the display name of a file object or subfolder, changing the item identifier in the process.

Namespace:  callback.ShellBoost.Core.WindowsShell
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public ShellItemIdList SetNameOf(
	IntPtr pidl,
	string name,
	SHGDNF flags = SHGDNF.SHGDN_NORMAL,
	bool throwOnError = true
)

Parameters

pidl
Type: SystemIntPtr
The pidl.
name
Type: SystemString
The new display name.
flags (Optional)
Type: callback.ShellBoost.Core.WindowsShellSHGDNF
The options.
throwOnError (Optional)
Type: SystemBoolean
true to throw error; otherwise false.

Return Value

Type: ShellItemIdList
The identifier list of the renamed item.
See Also