点击或拖拽改变大小

XsWin32FileStream.SetLength 方法

X#
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
查看代码

参数

length
类型:Int64
异常
异常条件
IOExceptionAn I/O error has occurred.
NotSupportedExceptionThe stream does not support both writing and seeking.
ArgumentOutOfRangeExceptionAttempted to set the value parameter to less than 0.
备注
This method calls the Windows SetEndOfFile() function directly.
参见