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:  ShellBoost.Core.WindowsShell
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.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: 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