FileStream.SetLength Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Sets the length of this stream to the given value.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- value
- Type: System.Int64
The new length of the stream.
| Exception | Condition |
|---|---|
| IOException | An I/O error has occurred. |
| NotSupportedException | The stream does not support both writing and seeking. |
| ArgumentOutOfRangeException | Attempted to set the value parameter to less than 0. |
Show: