- stream
- File stream to advise.
- pattern
- A Mono.Unix.FileAccessPattern containing the file access pattern to suggest.
Type Reason ArgumentException stream is not a valid file stream.
-or-
advice is not a value.
ArgumentNullException stream is null. System.IO.IOException stream refers to a pipe or FIFO.
AdviseFileAccessPattern is used to announce an intention to access file data with a specific pattern, allowing the kernel to perform appropriate optimizations.
pattern applies from beginning of file to end of file.
The specified pattern is not binding; it merely constitutes an expectation on behalf of the application.