49 [Obsolete(
"IsolatedStorageFileStream.Handle has been deprecated. Use IsolatedStorageFileStream's SafeFileHandle property instead.")]
81 : this(path, mode, access, share, 1024, null)
86 : this(path, mode, access, share, 1024, isf)
91 : this(path, mode, access, share, bufferSize, null)
96 : this(path, mode, access, share, bufferSize,
InitializeFileStream(path, mode, access, share, bufferSize, isf))
115 if (path.Length == 0 || path.Equals(
"\\"))
129 if ((uint)(mode - 1) > 5u)
134 initialiationData.FullPath = isf.
GetFullPath(path);
135 initialiationData.StorageFile = isf;
158 protected override void Dispose(
bool disposing)
162 if (disposing &&
_fs !=
null)
169 base.Dispose(disposing);
183 return base.DisposeAsync();
191 public override void Flush(
bool flushToDisk)
281 [UnsupportedOSPlatform(
"macos")]
287 [UnsupportedOSPlatform(
"macos")]
override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state)
override Task< int > ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
override void EndWrite(IAsyncResult asyncResult)
virtual void Unlock(long position, long length)
override void Dispose(bool disposing)
override void SetLength(long value)
override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
override void WriteByte(byte value)
override int EndRead(IAsyncResult asyncResult)
override ValueTask DisposeAsync()
override long Seek(long offset, SeekOrigin origin)
override Task FlushAsync(CancellationToken cancellationToken)
FileStream(IntPtr handle, FileAccess access)
override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state)
override void Write(byte[] buffer, int offset, int count)
override int Read(byte[] buffer, int offset, int count)
virtual void Lock(long position, long length)
IsolatedStorageFileStream(string path, FileMode mode, IsolatedStorageFile? isf)
IsolatedStorageFileStream(string path, FileMode mode, FileAccess access, FileShare share, int bufferSize, IsolatedStorageFile? isf)
override int Read(Span< byte > buffer)
override void Flush(bool flushToDisk)
override void SetLength(long value)
IsolatedStorageFileStream(string path, FileMode mode, FileAccess access, FileShare share)
override ValueTask< int > ReadAsync(Memory< byte > buffer, CancellationToken cancellationToken)
IsolatedStorageFileStream(string path, FileMode mode, FileAccess access, FileShare share, int bufferSize)
override ValueTask DisposeAsync()
override int Read(byte[] buffer, int offset, int count)
override ValueTask WriteAsync(ReadOnlyMemory< byte > buffer, CancellationToken cancellationToken)
readonly string _givenPath
override void Lock(long position, long length)
override void WriteByte(byte value)
readonly IsolatedStorageFile _isf
override IAsyncResult BeginRead(byte[] array, int offset, int numBytes, AsyncCallback? userCallback, object? stateObject)
IsolatedStorageFileStream(string path, FileMode mode, FileAccess access)
override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
override void Dispose(bool disposing)
override void Unlock(long position, long length)
override Task FlushAsync(CancellationToken cancellationToken)
override IAsyncResult BeginWrite(byte[] array, int offset, int numBytes, AsyncCallback? userCallback, object? stateObject)
IsolatedStorageFileStream(string path, FileMode mode, FileAccess access, IsolatedStorageFile? isf)
override int EndRead(IAsyncResult asyncResult)
IsolatedStorageFileStream(string path, FileMode mode, FileAccess access, FileShare share, IsolatedStorageFile? isf)
override void Write(ReadOnlySpan< byte > buffer)
IsolatedStorageFileStream(string path, FileMode mode)
static InitialiationData InitializeFileStream(string path, FileMode mode, FileAccess access, FileShare share, int bufferSize, IsolatedStorageFile isf)
IsolatedStorageFileStream(string path, FileMode mode, FileAccess access, FileShare share, int bufferSize, InitialiationData initializationData)
override void Write(byte[] buffer, int offset, int count)
readonly string _fullPath
override void EndWrite(IAsyncResult asyncResult)
override long Seek(long offset, SeekOrigin origin)
override Task< int > ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
static IsolatedStorageFile GetUserStoreForDomain()
static Exception GetIsolatedStorageException(string exceptionMsg, Exception rootCause)
string GetFullPath(string partialPath)
static string IsolatedStorage_Path
static string IsolatedStorage_StoreNotOpen
static string IsolatedStorage_Operation_ISFS
static string IsolatedStorage_FileOpenMode
IsolatedStorageFile StorageFile