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.169 -- Release Build+9539f17c709220b9bccf5fcf2a5ec2d79c38125a
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