S2Container.NET uses JScript.NET. Script used in a configuration file may be converted into a .NET object.
String are surrounded by "'s. Example: "hoge"
char are surrounded by '. Example: 'a'
Integer are written as they are. Example: 123
System.Boolean have values true and false
System.Enum are written with a fully qualified name and member name. (This is noot in strictly accordance with JScript.NET convention.) Example: System.Data.DbType.Decimal
System.Type is written as fully qualified name. (This is noot in strictly accordance with JScript.NET convention.) Example: Foo.Bar
Standard library (mscorlib.dll), class, and constructors may be called. (System in the namespace is omitted.) Example: new DateTime()
Set in appSettings section in application configuration file (version 1.2.1 or higher).
In .NET 2.0, result of System.Configuration.ConfigurationManager.AppSettings is set.
In .NET 1.1, result of ‚Ĺ‚ÍSystem.Configuration.ConfigurationSettings.AppSettings is set.
out
System.Console.Out
Only defined in body of
<initMethod> or <destroyMethod>
err
System.Console.Error
Only defined in body of
<initMethod> or <destroyMethod>
Following JScript.NET variables may be used in the configuration file:
Name
Description
self
Variable defined only in body of
<initMethod> or <destroyMethod>.
This variable references the current component (object within <component> elements in <initMethod> or <destroyMethod>).