ExpressionBuilder Class
Maps an expression prefix to an expression builder type.
Syntax
class ExpressionBuilder : CollectionElement
Methods
This class contains no methods.
Properties
The following table lists the properties exposed by the ExpressionBuilder
class.
Name | Description |
---|---|
ExpressionPrefix |
A read-only string value that contains the prefix for the current expression builder object. The key property. |
Type |
A read/write string value that contains a type associated with the prefix specified in the ExpressionPrefix property. |
Subclasses
This class contains no subclasses.
Remarks
Instances of this class are contained in the ExpressionBuilders
array property of the ExpressionBuilderSettings class.
Expression builders allow property values to be set and retrieved in a control during page parsing. When the page parser encounters an expression in the format <%$ prefix:value %>
, it creates an expression builder based on prefix
and passes the value
to the expression builder for evaluation. The expression builder then returns the requested value to the page.
ExpressionPrefix
values are associated with expression builders in the <``expressionBuilders``>
section of a Web.config file, as the following example shows:
<configuration>
<system.web>
<compilation>
<expressionBuilders>
<add expressionPrefix="TCO"
type="Contoso.Finance.TCOExpressionBuilder"/>
</expressionBuilders>
</compilation>
</system.web>
</configuration>
Inheritance Hierarchy
ExpressionBuilder
Requirements
Type | Description |
---|---|
Client | - IIS 7.0 on Windows Vista - IIS 7.5 on Windows 7 - IIS 8.0 on Windows 8 - IIS 10.0 on Windows 10 |
Server | - IIS 7.0 on Windows Server 2008 - IIS 7.5 on Windows Server 2008 R2 - IIS 8.0 on Windows Server 2012 - IIS 8.5 on Windows Server 2012 R2 - IIS 10.0 on Windows Server 2016 |
Product | - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0 |
MOF file | WebAdministration.mof |
See Also
System.Web.Compilation.ExpressionPrefixAttribute
System.Web.Configuration.CompilationSection.ExpressionBuilders
CollectionElement Class
CompilationSection Class
ExpressionBuilderSettings Class