C# Класс NArrange.Core.Configuration.CodeConfiguration

Code arranger configuration information.
Наследование: ConfigurationElement
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CodeConfiguration System
HandleUnknownAttribute void
HandleUnknownElement void
TreeProcess void
Upgrade void
UpgradeProjectExtensions void

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

Метод Описание
Clone ( ) : object

Override Clone so that we can force resolution of element references.

Load ( Stream stream ) : CodeConfiguration

Loads a configuration from a stream.

Load ( Stream stream, bool resolveReferences ) : CodeConfiguration

Loads a configuration from a stream.

Load ( string fileName ) : CodeConfiguration

Loads a configuration from the specified file.

Load ( string fileName, bool resolveReferences ) : CodeConfiguration

Loads a configuration from the specified file.

ResolveReferences ( ) : void

Resolves any reference elements in the configuration.

Save ( string fileName ) : void

Saves the configuration to a file.

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

Метод Описание
DoClone ( ) : ConfigurationElement

Creates a clone of this instance.

Приватные методы

Метод Описание
CodeConfiguration ( ) : System

Type initialization.

HandleUnknownAttribute ( object sender, XmlAttributeEventArgs e ) : void

Handler for unknown attributes.

HandleUnknownElement ( object sender, XmlElementEventArgs e ) : void

Handler for unknown elements.

TreeProcess ( ConfigurationElement element, Action actions ) : void

Recurses through the configuration tree and executes actions against each configuration element.

Upgrade ( ) : void

Upgrades the configuration.

UpgradeProjectExtensions ( ) : void

Moves project extensions to the new format.

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

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

Override Clone so that we can force resolution of element references.
public Clone ( ) : object
Результат object

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

Creates a clone of this instance.
protected DoClone ( ) : ConfigurationElement
Результат ConfigurationElement

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

Loads a configuration from a stream.
public static Load ( Stream stream ) : CodeConfiguration
stream Stream The stream to load the configuration from.
Результат CodeConfiguration

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

Loads a configuration from a stream.
public static Load ( Stream stream, bool resolveReferences ) : CodeConfiguration
stream Stream The sream to load the configuration from.
resolveReferences bool /// Whether or not element references should be resolved. ///
Результат CodeConfiguration

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

Loads a configuration from the specified file.
public static Load ( string fileName ) : CodeConfiguration
fileName string Configuration file name.
Результат CodeConfiguration

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

Loads a configuration from the specified file.
public static Load ( string fileName, bool resolveReferences ) : CodeConfiguration
fileName string Configuration file name.
resolveReferences bool Resolve element references.
Результат CodeConfiguration

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

Resolves any reference elements in the configuration.
public ResolveReferences ( ) : void
Результат void

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

Saves the configuration to a file.
public Save ( string fileName ) : void
fileName string Name of the file.
Результат void