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.171 -- Release Build+d62f203706e9a951eba0d87921639f80180c6058
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