Muokkaa

ConfigXmlDocument Class

Definition

Wraps the corresponding XmlDocument type and also carries the necessary information for reporting file-name and line numbers.

This API supports the product infrastructure and is not intended to be used directly from your code.

public ref class ConfigXmlDocument sealed : System::Xml::XmlDocument, System::Configuration::Internal::IConfigErrorInfo
public sealed class ConfigXmlDocument : System.Xml.XmlDocument, System.Configuration.Internal.IConfigErrorInfo
type ConfigXmlDocument = class
    inherit XmlDocument
    interface IConfigErrorInfo
Public NotInheritable Class ConfigXmlDocument
Inherits XmlDocument
Implements IConfigErrorInfo
Inheritance
ConfigXmlDocument
Implements

Remarks

The ConfigXmlDocument wraps the corresponding XmlDocument type to carry the necessary information for reporting file-name and line numbers. This information is necessary when the system issues configuration errors.

Constructors

Name Description
ConfigXmlDocument()

This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the ConfigXmlDocument class.

Properties

Name Description
Filename

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets the configuration file name.

LineNumber

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets the current node line number.

Methods

Name Description
CreateAttribute(String, String, String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Creates a configuration element attribute.

CreateCDataSection(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Creates an XML CData section.

CreateComment(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Create an XML comment.

CreateElement(String, String, String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Creates a configuration element.

CreateSignificantWhitespace(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Creates white spaces.

CreateTextNode(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Create a text node.

CreateWhitespace(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Creates white space.

Load(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Loads the configuration file.

LoadSingleElement(String, XmlTextReader)

This API supports the product infrastructure and is not intended to be used directly from your code.

Loads a single configuration element.

Explicit Interface Implementations

Name Description
IConfigErrorInfo.Filename

Gets the configuration file name.

IConfigErrorInfo.LineNumber

Gets the configuration line number.

Applies to

See also