SetLength Method (NativeFileStream)
In This Topic
When overridden in a derived class, sets the length of the current stream.
Syntax
'Declaration
Public Overrides Sub SetLength( _
ByVal As System.Long _
)
public override void SetLength(
System.long
)
Parameters
- value
Exceptions
Exception | Description |
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. |
See Also