ConnectionStringsExpressionBuilder.GetCodeExpression Method

Definition

Returns a code expression to evaluate during page parsing.

public:
 override System::CodeDom::CodeExpression ^ GetCodeExpression(System::Web::UI::BoundPropertyEntry ^ entry, System::Object ^ parsedData, System::Web::Compilation::ExpressionBuilderContext ^ context);
public override System.CodeDom.CodeExpression GetCodeExpression (System.Web.UI.BoundPropertyEntry entry, object parsedData, System.Web.Compilation.ExpressionBuilderContext context);
override this.GetCodeExpression : System.Web.UI.BoundPropertyEntry * obj * System.Web.Compilation.ExpressionBuilderContext -> System.CodeDom.CodeExpression
Public Overrides Function GetCodeExpression (entry As BoundPropertyEntry, parsedData As Object, context As ExpressionBuilderContext) As CodeExpression

Parameters

entry
BoundPropertyEntry

An object that represents information about the property bound to by the expression.

parsedData
Object

The object that represents parsed data as returned by ParseExpression(String, Type, ExpressionBuilderContext).

context
ExpressionBuilderContext

Properties for the control or page.

Returns

A CodeExpression that invokes a method.

Remarks

This method is called during the CodeDOM creation for a page or control. The CodeExpression object returned is of the type CodeMethodInvokeExpression and represents the method to call when retrieving a connection string value.

Applies to

See also