Click or drag to resize

FileOperationNewItem Method (String, FileAttributes, String, String, Boolean)

Declares a new item that is to be created in a specified location.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
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: Int32
The result of Windows Shell last operation.
Exceptions
ExceptionCondition
ArgumentNullExceptionfolderPath is null.
See Also