FileOperationNewItem Method (String, FileAttributes, String, String, Boolean) |
Declares a new item that is to be created in a specified location.
Namespace:
ShellBoost.Core.Utilities
Assembly:
ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax public int NewItem(
string folderPath,
FileAttributes attributes,
string name,
string templateName = null,
bool throwOnError = true
)
Parameters
- folderPath
- Type: SystemString
The folder path. - attributes
- Type: System.IOFileAttributes
The attributes. - name
- Type: SystemString
The name of the new item. - templateName (Optional)
- Type: SystemString
The template name. Pass null to specify a new, blank file. - throwOnError (Optional)
- Type: SystemBoolean
if set to true errors may be throw in case of Windows Shell errors.
Return Value
Type:
Int32The result of Windows Shell last operation.
Exceptions See Also