Oracle® Coherence .NET API Reference Release 3.6
E15727-01

Sets the length of the current stream to the specified value.

Namespace:  Tangosol.Util
Assembly:  Coherence (in Coherence.dll) Version: 3.6.0.0 (3.6.0.0)

Syntax

C#
public override void SetLength(
	long value
)

Parameters

value
Type: System..::.Int64
The value at which to set the length.

Exceptions

ExceptionCondition
System..::.NotSupportedException The current stream is not resizable and value is larger than the current capacity or the current stream does not support writing.
System..::.ArgumentOutOfRangeException Value is negative or is greater than the maximum length of the stream, where the maximum length is (System.Int32.MaxValue - origin), and origin is the index into the underlying buffer at which the stream starts.

See Also