/// <summary> /// Creates a write-only <see cref="FileStream"/>. /// </summary> /// <returns>A new write-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 OpenWrite() { return(LongPathFile.OpenWrite(this.NormalizedPath)); }