Sets the length of the current stream.

Namespace:  Rebex.Security
Assembly:  Rebex.Security (in Rebex.Security.dll)

Syntax

Visual Basic
Public Overrides Sub SetLength ( _
	value As Long _
)
C#
public override void SetLength(
	long value
)

Parameters

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

Exceptions

ExceptionCondition
System.IO..::..IOException An I/O error occurs.
System..::..NotSupportedException The stream does not support both writing and seeking, such as if the stream is constructed from a pipe or console output.
System..::..ObjectDisposedException Methods were called after the stream was closed.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also