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 DirectoryNotFoundException( ); public DirectoryNotFoundException(stringmessage
); public DirectoryNotFoundException(stringmessage
, ExceptioninnerException
); // Protected Constructors protected DirectoryNotFoundException(System.Runtime.Serialization.SerializationInfoinfo
, System.Runtime.Serialization.StreamingContextcontext
); }
Hierarchy
System.Object
→
System.Exception(System.Runtime.Serialization.ISerializable)
→
System.SystemException
→
IOException
→
DirectoryNotFoundException
Get C# in a Nutshell, Second Edition 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.