Click or drag to resize

MenuCreateNewItem Method

This utility method invokes the shell 'New' menu and creates a new file or folder corresponding to a Shell-initiated item invoke.

Namespace:  callback.ShellBoost.Core.WindowsShell
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static string CreateNewItem(
	string verb,
	CreateNewItemOptions options = null,
	bool throwOnError = true
)

Parameters

verb
Type: SystemString
The menu item verb.
options (Optional)
Type: callback.ShellBoost.Core.WindowsShellCreateNewItemOptions
The options.
throwOnError (Optional)
Type: SystemBoolean
true to throw error; otherwise false.

Return Value

Type: String
The path to a new file or folder that was created or null if there was an error. The file may be empty (of size 0) or not.
Exceptions
ExceptionCondition
ArgumentNullExceptionverb is null.
See Also