C# Класс Sage.Configuration.ProjectConfiguration

Provides a configuration container for all configurable properties of this project.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
MergeExtension void
Parse void
Parse void
ProjectConfiguration System
ProjectConfiguration System
RegisterExtension void
RegisterRoutes void

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

Метод Описание
Create ( ) : ProjectConfiguration

Creates a ProjectConfiguration instance with all settings initialized to their defaults.

Create ( Stream configStream ) : ProjectConfiguration

Creates a new ProjectConfiguration instance using the file from the specified configStream.

Create ( XmlDocument configDoc ) : ProjectConfiguration

Creates a new ProjectConfiguration instance using the configDoc.

Create ( string configPath ) : ProjectConfiguration

Creates a new ProjectConfiguration instance using the file from the specified configPath.

GetVariable ( string name, string locale = null ) : string

Gets the value of the project variable with the specified name.

ToString ( ) : string
ToXml ( XmlDocument ownerDoc ) : XmlElement

Generates an XML element that represents this instance.

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

Метод Описание
MergeExtension ( ProjectConfiguration extensionConfig ) : void
Parse ( XmlElement configNode ) : void
Parse ( string configPath ) : void
ProjectConfiguration ( ) : System
ProjectConfiguration ( ProjectConfiguration initConfiguration = null ) : System
RegisterExtension ( ProjectConfiguration extensionConfig ) : void
RegisterRoutes ( ) : void

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

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

Creates a ProjectConfiguration instance with all settings initialized to their defaults.
public static Create ( ) : ProjectConfiguration
Результат ProjectConfiguration

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

Creates a new ProjectConfiguration instance using the file from the specified configStream.
public static Create ( Stream configStream ) : ProjectConfiguration
configStream Stream The stream to the configuration file to use.
Результат ProjectConfiguration

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

Creates a new ProjectConfiguration instance using the configDoc.
public static Create ( XmlDocument configDoc ) : ProjectConfiguration
configDoc System.Xml.XmlDocument The configuration file to use.
Результат ProjectConfiguration

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

Creates a new ProjectConfiguration instance using the file from the specified configPath.
public static Create ( string configPath ) : ProjectConfiguration
configPath string The path to the configuration file to use.
Результат ProjectConfiguration

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

Gets the value of the project variable with the specified name.
public GetVariable ( string name, string locale = null ) : string
name string The name of the variable.
locale string Optional locale to use to select the variable value.
Результат string

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

public ToString ( ) : string
Результат string

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

Generates an XML element that represents this instance.
public ToXml ( XmlDocument ownerDoc ) : XmlElement
ownerDoc System.Xml.XmlDocument The document to use to create the element with.
Результат System.Xml.XmlElement