Click or drag to resize

CachedFileStreamSetLength Method

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

Namespace: GSF.IO
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.296-beta+d85e3b6b23676c9fffb3231e358b4f94ad70793d
Syntax
public override void SetLength(
	long value
)
View Source

Parameters

value  Int64
The desired length of the current stream in bytes.
Exceptions
ExceptionCondition
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