StreamTools ThreadSafeStream SetLength Method NetworkComms.Net Help
When overridden in a derived class, sets the length of the current stream.

Namespace: NetworkCommsDotNet.Tools
Assembly: NetworkCommsDotNet (in NetworkCommsDotNet.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax

public override void SetLength(
	long value
)

Parameters

value
Type: OnlineSystem Int64
The desired length of the current stream in bytes.
Exceptions

ExceptionCondition
OnlineSystem.IO IOExceptionAn I/O error occurs.
OnlineSystem NotSupportedExceptionThe stream does not support both writing and seeking, such as if the stream is constructed from a pipe or console output.
OnlineSystem ObjectDisposedExceptionMethods were called after the stream was closed.
See Also