Example #1
0
 /// <summary>
 /// Creates a read-only <see cref="FileStream"/>.
 /// </summary>
 /// <returns>A new read-only <see cref="FileStream"/> object.</returns>
 /// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception>
 /// <exception cref="FileNotFoundException">The file is not found.</exception>
 /// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive.</exception>
 /// <exception cref="IOException">An I/O error occurred while creating the file.</exception>
 public FileStream OpenRead()
 {
     return(LongPathFile.OpenRead(this.NormalizedPath));
 }