Click or drag to resize

IOUtilitiesFileSetEnd Method

Sets the size for the specified file.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static bool FileSetEnd(
	string path,
	long size,
	bool throwOnError = true
)

Parameters

path
Type: SystemString
The file path.
size
Type: SystemInt64
The file size.
throwOnError (Optional)
Type: SystemBoolean
if set to true errors may be throw in case of errors.

Return Value

Type: Boolean
true if the operation succeeded, false otherwise.
Exceptions
ExceptionCondition
ArgumentNullExceptionsource is null or destination is null.
See Also