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.278-beta+c828ae22c788d41a5526bfeb0705a559edbc309e
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