Click or drag to resize

XsWin32FileStream.SetLength Method

X#
Sets the length of this stream to the given value.

Namespace:  XSharp.IO
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.21
Syntax
 VIRTUAL METHOD SetLength(
	length AS INT64
) AS VOID
Request Example View Source

Parameters

length
Type: Int64
Exceptions
ExceptionCondition
IOExceptionAn I/O error has occurred.
NotSupportedExceptionThe stream does not support both writing and seeking.
ArgumentOutOfRangeExceptionAttempted to set the value parameter to less than 0.
Remarks
This method calls the Windows SetEndOfFile() function directly.
See Also