Export (0) Print
Expand All

ExpressionBuilder Class

Retrieves a dynamic resource during compilation.

Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)

public sealed class ExpressionBuilder : ConfigurationElement
public final class ExpressionBuilder extends ConfigurationElement
public final class ExpressionBuilder extends ConfigurationElement
Not applicable.

ASP.NET automatically evaluates expressions during page parsing using the ExpressionBuilder class. The ExpressionBuilderCollection collection, which is made up of the expressionBuilders elements contained in the compilation section of the configuration. The ExpressionBuilder contains specific values in key/value pairs.

A value is retrieved by including an expression of the form

<%$ ExpressionPrefix: ExpressionKey %>

within the page. The ExpressionPrefix maps the type of expression to be retrieved as either a common expression-builder type (that is, AppSettingsExpressionBuilder) or a custom expression builder type. The ExpressionKey specifies the key used to reference the returned value.

If you choose to implement a common expression-builder type, you must map the expression builder to the associated section name in the configuration. If you choose to implement a custom expression-builder type, you must map your expression builder to your custom expression-builder class, which must derive from the ExpressionBuilder class.

System.Object
   System.Configuration.ConfigurationElement
    System.Web.Configuration.ExpressionBuilder

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft