C# Class Sage.Configuration.ProjectConfiguration

Provides a configuration container for all configurable properties of this project.
Afficher le fichier Open project: igorfrance/sage Class Usage Examples

Private Properties

Свойство Type Description
MergeExtension void
Parse void
Parse void
ProjectConfiguration System
ProjectConfiguration System
RegisterExtension void
RegisterRoutes void

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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

Method Details

Create() public static méthode

Creates a ProjectConfiguration instance with all settings initialized to their defaults.
public static Create ( ) : ProjectConfiguration
Résultat ProjectConfiguration

Create() public static méthode

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.
Résultat ProjectConfiguration

Create() public static méthode

Creates a new ProjectConfiguration instance using the configDoc.
public static Create ( XmlDocument configDoc ) : ProjectConfiguration
configDoc System.Xml.XmlDocument The configuration file to use.
Résultat ProjectConfiguration

Create() public static méthode

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.
Résultat ProjectConfiguration

GetVariable() public méthode

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.
Résultat string

ToString() public méthode

public ToString ( ) : string
Résultat string

ToXml() public méthode

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.
Résultat System.Xml.XmlElement