/// <summary> /// Encrypts a file so that only the account used to encrypt the file can decrypt it. /// </summary> /// <exception cref="System.IO.DriveNotFoundException">An invalid drive was specified.</exception> /// <exception cref="System.IO.FileNotFoundException">The file described by the current System.IO.FileInfo object could not be found.</exception> /// <exception cref="System.IO.IOException">An I/O error occurred while opening the file.</exception> /// <exception cref="System.NotSupportedException">The file system is not NTFS.</exception> /// <exception cref="System.PlatformNotSupportedException">The current operating system is not Microsoft Windows NT or later.</exception> /// <exception cref="System.UnauthorizedAccessException"> /// The file described by the current System.IO.FileInfo object is read-only. /// -or- /// This operation is not supported on the current platform.-or- The caller does not have the required permission.</exception> public void Encrypt() { _fileInfo.Encrypt(); }
public void Encrypt() { inner.Encrypt(); }