XsWin32FileStream.SetLength 方法 | |
Sets the length of this stream to the given value.
命名空间:
XSharp.IO
程序集:
XSharp.Core (在 XSharp.Core.dll 中) 版本:2.22 GA
语法 VIRTUAL METHOD SetLength(
length AS INT64
) AS VOID
public override void SetLength(
long length
)
查看代码参数
- length
- 类型:Int64
异常 异常 | 条件 |
---|
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. |
备注 This method calls the Windows SetEndOfFile() function directly.
参见