Click or drag to resize

XsBufferedFileStream.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(
	newLength AS INT64
) AS VOID
Request Example View Source

Parameters

newLength
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.
See Also