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.170 -- Release Build+270a561d12ed7ebe7f1cf5b3042f77290d2c34bd
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