Bagikan melalui


RouteUrlExpressionBuilder.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 TryParseRouteExpression(String, RouteValueDictionary, String).

context
ExpressionBuilderContext

Properti untuk kontrol atau halaman.

Mengembalikan

CodeExpression Instans yang digunakan dalam penetapan properti.

Keterangan

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

Berlaku untuk

Lihat juga