C# 클래스 Sage.Configuration.ProjectConfiguration

Provides a configuration container for all configurable properties of this project.
파일 보기 프로젝트 열기: igorfrance/sage 1 사용 예제들

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