XsWin32FileStream.Length Property
|
|
Gets the length in bytes of the stream.
Namespace:
XSharp.IO
Assembly:
XSharp.Core (in XSharp.Core.dll) Version: 2.24 GA
Syntax VIRTUAL PROPERTY Length AS INT64 GET
public override long Length { get; } Request Example
View SourceReturn Value
Type:
Int64A long value representing the length of the stream in bytes.
Exceptions| Exception | Condition |
|---|
| NotSupportedException | CanSeek for this stream is . |
| IOException | An I/O error, such as the file being closed, occurred. |
RemarksThis method calls the Windows GetFileSize() function directly.
See Also