XsWin32FileStream.SetLength Method | |
Sets the length of this stream to the given value.
Namespace:
XSharp.IO
Assembly:
XSharp.Core (in XSharp.Core.dll) Version: 2.21
Syntax VIRTUAL METHOD SetLength(
length AS INT64
) AS VOID
public override void SetLength(
long length
)
Request Example
View SourceParameters
- length
- Type: Int64
Exceptions 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. |
Remarks This method calls the Windows SetEndOfFile() function directly.
See Also