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.304-beta+e40582bbb64c28edadb696048770577c4e325275
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