Bagikan melalui


AppSettingsExpressionBuilder.GetCodeExpression Metode

Definisi

Mengembalikan ekspresi kode yang digunakan untuk melakukan penetapan properti di kelas halaman yang dihasilkan.

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

Parameter

entry
BoundPropertyEntry

Properti tempat ekspresi terikat.

parsedData
Object

Objek yang mewakili data yang diurai seperti yang dikembalikan oleh ParseExpression(String, Type, ExpressionBuilderContext).

context
ExpressionBuilderContext

Properti untuk kontrol atau halaman.

Mengembalikan

CodeExpression yang digunakan dalam penetapan properti.

Keterangan

Metode ini dipanggil selama pembuatan CodeDOM untuk halaman atau kontrol. Objek yang dikembalikan CodeExpression mewakili ekspresi kode untuk ditambahkan ke penetapan properti di kelas halaman yang dihasilkan.

Berlaku untuk

Lihat juga