CachedFileStreamSetLength Method

When overridden in a derived class, sets the length of the current stream.

Definition

Namespace: IO
Assembly: Gemstone.IO (in Gemstone.IO.dll) Version: 1.0.128 -- Release Build+2960d3f3619fdc53cad514a51817286dcfb19027
public override void SetLength(
	long value
)

Parameters

value  Int64
The desired length of the current stream in bytes.

Exceptions

ArgumentOutOfRangeExceptionAttempted to set the value parameter to less than 0.
IOExceptionAn I/O error occurs.
NotSupportedExceptionThe stream does not support both writing and seeking.
ObjectDisposedExceptionMethods were called after the stream was closed.

See Also