public sealed class FileStorage : IDisposablePublic NotInheritable Class FileStorage
Implements IDisposable[<SealedAttribute>]
type FileStorage =
class
interface IDisposable
end| CanRead | 获取一个值,指示是否可以读取文件。 |
| CanSeek | 获取一个值,指示是否可以查找文件位置。 |
| CanWrite | 获取一个值,指示是否可以写入文件。 |
| Length | 获取文件长度。 |
| Path | 获取文件路径。 |
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
| Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) |
| Flush | 刷新缓冲区。 |
| FlushAsync | 异步刷新缓冲区。 |
| GetHashCode | Serves as the default hash function. (继承自 Object。) |
| GetType | Gets the Type of the current instance. (继承自 Object。) |
| Read(Int64, SpanByte) | 读取数据。 |
| Read(Int64, Byte, Int32, Int32) | 读取数据。 |
| ReadAsync | 异步读取数据。 |
| SetLength | 设置文件长度。 |
| ToString | Returns a string that represents the current object. (继承自 Object。) |
| Write(Int64, ReadOnlySpanByte) | 写入数据。 |
| Write(Int64, Byte, Int32, Int32) | 写入数据。 |
| WriteAsync | 异步写入数据。 |
| SafeDispose |
安全性释放(不用判断对象是否为空)。不会抛出任何异常。
(由 SystemExtension 定义。) |
| ToJsonString |
转换为Json
(由 SerializeConvert 定义。) |