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.249-beta+56964f8aed6f3f2e54faec1539f7ce0ba6548fdf
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