C# 클래스 Innovatian.Configuration.XmlConfigurationSource

상속: AbstractFileConfigurationSource
파일 보기 프로젝트 열기: idavis/innovatian.configuration 1 사용 예제들

공개 메소드들

메소드 설명
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