Name

DirectoryNotFoundException

Synopsis

This exception is thrown if you attempt to access a directory that does not exist.

public class DirectoryNotFoundException : IOException {
// Public Constructors
   public method DirectoryNotFoundException();  
   public method DirectoryNotFoundException(string message);  
   public method DirectoryNotFoundException(string message, 
        Exception innerException);  
// Protected Constructors
   protected method DirectoryNotFoundException(
        System.Runtime.Serialization.SerializationInfo info, 
        System.Runtime.Serialization.StreamingContext context);  
}

Hierarchy

System.ObjectSystem.Exception(System.Runtime.Serialization.ISerializable)System.SystemExceptionIOExceptionDirectoryNotFoundException

Get C# in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.