C# Класс Innovatian.Configuration.XmlConfigurationSource

Наследование: AbstractFileConfigurationSource
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
FromFile ( string fileName ) : IConfigurationSource

Creates a new IConfigurationSource instance from the file specified.

ToString ( ) : string

Returns a T:System.String that represents the current T:System.Object.

ToXml ( IConfigurationSection section ) : System.Xml.Linq.XElement

Converts the given IConfigurationSection to an XML representation.

ToXml ( IEnumerable sections ) : string

Converts the given IConfigurationSections to an XML representation.

XmlConfigurationSource ( ) : System

Initializes a new instance of the XmlConfigurationSource class.

XmlConfigurationSource ( string xml ) : System

Initializes a new instance of the XmlConfigurationSource class.

Защищенные методы

Метод Описание
Load ( string fileName ) : void

Loads the current instance from the given file.

Parse ( string xml ) : void

Parses the specified XML.

Process ( System.Xml.Linq.XDocument document ) : void

Processes the specified document.

Описание методов

FromFile() публичный статический Метод

Creates a new IConfigurationSource instance from the file specified.
public static FromFile ( string fileName ) : IConfigurationSource
fileName string /// The file to load. ///
Результат IConfigurationSource

Load() защищенный Метод

Loads the current instance from the given file.
protected Load ( string fileName ) : void
fileName string The name of the file to load into this instance.
Результат void

Parse() защищенный Метод

Parses the specified XML.
protected Parse ( string xml ) : void
xml string The XML.
Результат void

Process() защищенный Метод

Processes the specified document.
protected Process ( System.Xml.Linq.XDocument document ) : void
document System.Xml.Linq.XDocument The document.
Результат void

ToString() публичный Метод

Returns a T:System.String that represents the current T:System.Object.
public ToString ( ) : string
Результат string

ToXml() публичный статический Метод

Converts the given IConfigurationSection to an XML representation.
public static ToXml ( IConfigurationSection section ) : System.Xml.Linq.XElement
section IConfigurationSection /// The section to convert to XML. ///
Результат System.Xml.Linq.XElement

ToXml() публичный статический Метод

Converts the given IConfigurationSections to an XML representation.
public static ToXml ( IEnumerable sections ) : string
sections IEnumerable /// The sections to convert to XML. ///
Результат string

XmlConfigurationSource() публичный Метод

Initializes a new instance of the XmlConfigurationSource class.
public XmlConfigurationSource ( ) : System
Результат System

XmlConfigurationSource() публичный Метод

Initializes a new instance of the XmlConfigurationSource class.
public XmlConfigurationSource ( string xml ) : System
xml string The XML source.
Результат System