XsWin32FileStream.Length 属性 | |
Gets the length in bytes of the stream.
命名空间:
XSharp.IO
程序集:
XSharp.Core (在 XSharp.Core.dll 中) 版本:2.22 GA
语法 VIRTUAL PROPERTY Length AS INT64 GET
public override long Length { get; }
查看代码返回值
类型:
Int64A long value representing the length of the stream in bytes.
异常 异常 | 条件 |
---|
NotSupportedException | CanSeek for this stream is . |
IOException | An I/O error, such as the file being closed, occurred. |
备注 This method calls the Windows GetFileSize() function directly.
参见