<Type Name="DirectoryNotFoundException" FullName="System.IO.DirectoryNotFoundException" FullNameSP="System_IO_DirectoryNotFoundException" Maintainer="ecma">
  <TypeSignature Language="ILASM" Value=".class public serializable DirectoryNotFoundException extends System.IO.IOException" />
  <TypeSignature Language="C#" Value="public class DirectoryNotFoundException : System.IO.IOException" />
  <MemberOfLibrary>BCL</MemberOfLibrary>
  <AssemblyInfo>
    <AssemblyName>mscorlib</AssemblyName>
    <AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ]</AssemblyPublicKey>
    <AssemblyVersion>2.0.0.0</AssemblyVersion>
  </AssemblyInfo>
  <ThreadingSafetyStatement>All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.</ThreadingSafetyStatement>
  <Base>
    <BaseTypeName>System.IO.IOException</BaseTypeName>
  </Base>
  <Interfaces />
  <Docs>
    <summary>
      <para> Represents the error that occurs when part of a file or directory argument
 cannot be found.</para>
    </summary>
    <remarks>To be added.</remarks>
    <example>
      <para>The following example demonstrates an error that causes
 the <see cref="T:System.IO.DirectoryNotFoundException" /> exception to be
 thrown. <SPAN><SPAN />In this case, the /Mistake/examples/
 directory does not exist and therefore cannot be
 located.</SPAN></para>
      <code lang="C#">using System;
using System.IO;
class DirectoryNotFoundExample {
 public static void Main () {
 string badPath = "/Mistake/examples/";
 try {
 Directory.GetFiles(badPath);
 }
 catch (DirectoryNotFoundException e) {
 Console.WriteLine("Caught: {0}",e.Message);
 }
 }
}
</code>
      <para>The output is </para>
      <c>
        <para> Caught: Could not find a
 part of the path "C:\Mistake\examples". </para>
      </c>
    </example>
  </Docs>
  <Members>
    <Member MemberName=".ctor">
      <MemberSignature Language="ILASM" Value="public rtspecialname specialname instance void .ctor()" />
      <MemberSignature Language="C#" Value="public DirectoryNotFoundException ();" />
      <MemberType>Constructor</MemberType>
      <ReturnValue />
      <Parameters />
      <Docs>
        <summary>
          <para>Constructs and initializes a new instance of the <see cref="T:System.IO.DirectoryNotFoundException" /> class.</para>
        </summary>
        <remarks>
          <para>This constructor initializes the <see cref="!:System.IO.DirectoryNotFoundException.Message" />
property of the new instance to a system-supplied message
that describes the error, such as "Could not find the specified
directory." This message takes into account the current system culture.</para>
          <para>The <see cref="!:System.IO.DirectoryNotFoundException.InnerException" /> property of the new instance is
initialized to <see langword="null" />.</para>
        </remarks>
      </Docs>
      <Excluded>0</Excluded>
    </Member>
    <Member MemberName=".ctor">
      <MemberSignature Language="ILASM" Value="public rtspecialname specialname instance void .ctor(string message)" />
      <MemberSignature Language="C#" Value="public DirectoryNotFoundException (string message);" />
      <MemberType>Constructor</MemberType>
      <ReturnValue />
      <Parameters>
        <Parameter Name="message" Type="System.String" />
      </Parameters>
      <Docs>
        <param name="message">A <see cref="T:System.String" /> that describes the error. The content of <paramref name="message" /> is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.</param>
        <summary>
          <para>Constructs and initializes a new instance of the <see cref="T:System.IO.DirectoryNotFoundException" />
class.</para>
        </summary>
        <remarks>
          <para>This constructor initializes the <see cref="!:System.IO.DirectoryNotFoundException.Message" /> property of the new instance using <paramref name="message" />. If <paramref name="message" /> is 
<see langword="null" />, the <see cref="!:System.IO.DirectoryNotFoundException.Message" /> property is initialized to 
   the system-supplied message provided by the constructor that takes no arguments.</para>
          <para> 
   The <see cref="!:System.IO.DirectoryNotFoundException.InnerException" /> property is initialized to <see langword="null" />.</para>
        </remarks>
      </Docs>
      <Excluded>0</Excluded>
    </Member>
    <Member MemberName=".ctor">
      <MemberSignature Language="C#" Value="protected DirectoryNotFoundException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);" />
      <MemberType>Constructor</MemberType>
      <Parameters>
        <Parameter Name="info" Type="System.Runtime.Serialization.SerializationInfo" />
        <Parameter Name="context" Type="System.Runtime.Serialization.StreamingContext" />
      </Parameters>
      <Docs>
        <param name="info">To be added.</param>
        <param name="context">To be added.</param>
        <summary>To be added.</summary>
        <remarks>To be added.</remarks>
      </Docs>
    </Member>
    <Member MemberName=".ctor">
      <MemberSignature Language="ILASM" Value="public rtspecialname specialname instance void .ctor(string message, class System.Exception innerException)" />
      <MemberSignature Language="C#" Value="public DirectoryNotFoundException (string message, Exception inner);" />
      <MemberType>Constructor</MemberType>
      <ReturnValue />
      <Parameters>
        <Parameter Name="message" Type="System.String" />
        <Parameter Name="inner" Type="System.Exception" />
      </Parameters>
      <Docs>
        <param name="message">A <see cref="T:System.String" /> that describes the error. The content of <paramref name="message" /> is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.</param>
        <param name="innerException">An instance of <see cref="T:System.Exception" /> that is the cause of the current exception. If <paramref name="innerException" /> is non-null, then the current Exception was raised in a catch block handling <paramref name="innerException" />.</param>
        <param name="inner">To be added.</param>
        <summary>
          <para>Constructs and initializes a new instance of the <see cref="T:System.IO.DirectoryNotFoundException" /> class.</para>
        </summary>
        <remarks>
          <para>This constructor initializes the <see cref="!:System.IO.DirectoryNotFoundException.Message" /> property of
   the new instance using <paramref name="message" /> and the <see cref="!:System.IO.DirectoryNotFoundException.InnerException" /> property using <paramref name="innerException" />. If <paramref name="message" /> is
<see langword="null" />, the <see cref="!:System.IO.DirectoryNotFoundException.Message" /> property is initialized to the system-supplied 
   message provided by the constructor that takes no arguments.</para>
          <para>
            <block subset="none" type="note">For more
   information on inner exceptions, see <see cref="P:System.Exception.InnerException" />.</block>
          </para>
        </remarks>
      </Docs>
      <Excluded>0</Excluded>
    </Member>
  </Members>
  <TypeExcluded>0</TypeExcluded>
  <Attributes>
    <Attribute>
      <AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName>
    </Attribute>
  </Attributes>
</Type>
