Пример #1
0
 /// <summary>Initializes a new instance of the <see cref="T:System.IO.IsolatedStorage.IsolatedStorageFileStream" /> class giving access to the file designated by <paramref name="path" />, in the specified <paramref name="mode" />, with the specified file <paramref name="access" />, using the file sharing mode specified by <paramref name="share" />, with the <paramref name="buffersize" /> specified, and in the context of the <see cref="T:System.IO.IsolatedStorage.IsolatedStorageFile" /> specified by <paramref name="isf" />.</summary>
 /// <param name="path">The relative path of the file within isolated storage. </param>
 /// <param name="mode">One of the <see cref="T:System.IO.FileMode" /> values. </param>
 /// <param name="access">A bitwise combination of the <see cref="T:System.IO.FileAccess" /> values. </param>
 /// <param name="share">A bitwise combination of the <see cref="T:System.IO.FileShare" /> values </param>
 /// <param name="bufferSize">The <see cref="T:System.IO.FileStream" /> buffer size. </param>
 /// <param name="isf">The <see cref="T:System.IO.IsolatedStorage.IsolatedStorageFile" /> in which to open the <see cref="T:System.IO.IsolatedStorage.IsolatedStorageFileStream" />. </param>
 /// <exception cref="T:System.ArgumentException">The <paramref name="path" /> is badly formed. </exception>
 /// <exception cref="T:System.ArgumentNullException">The <paramref name="path" /> is null. </exception>
 /// <exception cref="T:System.IO.FileNotFoundException">No file was found and the <paramref name="mode" /> is set to <see cref="F:System.IO.FileMode.Open" />. </exception>
 /// <exception cref="T:System.IO.IsolatedStorage.IsolatedStorageException">
 ///   <paramref name="isf" /> does not have a quota. </exception>
 public IsolatedStorageFileStream(string path, FileMode mode, FileAccess access, FileShare share, int bufferSize, IsolatedStorageFile isf) : base(IsolatedStorageFileStream.CreateIsolatedPath(isf, path, mode), mode, access, share, bufferSize, false, true)
 {
 }