Class FileAccessViolationException

FileAccessViolationException class

The exception that is thrown when a file cannot be opened because another process has opened and locked it.

public class FileAccessViolationException : IOException

Constructors

NameDescription
FileAccessViolationException()Initializes a new instance of the FileAccessViolationException class with a default error message.
FileAccessViolationException(string)Initializes a new instance of the FileAccessViolationException class with the specified error message.
FileAccessViolationException(string, Exception)Initializes a new instance of the FileAccessViolationException class with the specified error message and a reference to the exception that caused this one.

See Also