This documentation is archived and is not being maintained.

ConfigurationException Members

ConfigurationException overview

Public Constructors

public constructorConfigurationException Constructor Overloaded. The exception that is thrown when an error occurs in a configuration setting. A constructor that accepts an XmlNode argument should be used when reporting errors from configuration section handlers (see IConfigurationSectionHandler).

Public Properties

public propertyBareMessage Gets the base error message without file name and line number information.
public propertyFilename Gets the name of the configuration file where the error occurred.
public propertyHelpLink (inherited from Exception) Gets or sets a link to the help file associated with this exception.
public propertyInnerException (inherited from Exception) Gets the Exception instance that caused the current exception.
public propertyLine Gets the number of the line where the error occurred.
public propertyMessage Overridden. Gets a string containing the concatenated file name and line number of the error.
public propertySource (inherited from Exception) Gets or sets the name of the application or the object that causes the error.
public propertyStackTrace (inherited from Exception) Gets a string representation of the frames on the call stack at the time the current exception was thrown.
public propertyTargetSite (inherited from Exception) Gets the method that throws the current exception.

Public Methods

public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodGetBaseException (inherited from Exception) When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions.
public methodGetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetObjectData Overridden. Populates the SerializationInfo object with the data needed to serialize the ConfigurationException object.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodstatic (Shared in Visual Basic)GetXmlNodeFilename Returns the name of the file that contains the configuration section node that contains the error.
public methodstatic (Shared in Visual Basic)GetXmlNodeLineNumber Returns the line number of the configuration section node that contains the error.
public methodToString (inherited from Exception) Overridden. Creates and returns a string representation of the current exception.

Protected Constructors

protected constructorConfigurationException Constructor Overloaded. The exception that is thrown when an error occurs in a configuration setting. A constructor that accepts an XmlNode argument should be used when reporting errors from configuration section handlers (see IConfigurationSectionHandler).

Protected Properties

protected propertyHResult (inherited from Exception) Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception.

Protected Methods

protected methodFinalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

ConfigurationException Class | System.Configuration Namespace

Show: