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.191-beta+925724bd48239ba1d4417fe63f8c4977892ab734
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