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.166 -- Release Build+a3b9ee20c2b6c07cd93996bfe91e7d228bb90231
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