This utility method invokes the shell 'New' menu and creates a new file or folder corresponding to a Shell-initiated item invoke.
Namespace:
ShellBoost.Core.WindowsShell
Assembly:
ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax public static string CreateNewItem(
string verb,
CreateNewItemOptions options = null,
bool throwOnError = true
)
Parameters
- verb
- Type: SystemString
The menu item verb. - options (Optional)
- Type: 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 See Also