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
Exception | Condition |
---|---|
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. |