PageParserFilter.ProcessCodeConstruct(CodeConstructType, String) 方法

定義

傳回值,以指出後續剖析器篩選條件是否應處理程式碼區塊。

public:
 virtual bool ProcessCodeConstruct(System::Web::UI::CodeConstructType codeType, System::String ^ code);
public virtual bool ProcessCodeConstruct (System.Web.UI.CodeConstructType codeType, string code);
abstract member ProcessCodeConstruct : System.Web.UI.CodeConstructType * string -> bool
override this.ProcessCodeConstruct : System.Web.UI.CodeConstructType * string -> bool
Public Overridable Function ProcessCodeConstruct (codeType As CodeConstructType, code As String) As Boolean

參數

codeType
CodeConstructType

CodeConstructType 列舉值之一,用來識別程式碼建構的型別。

code
String

包含位於程式碼建構內部之程式碼的字串常值。

傳回

如果剖析器應進一步處理程式碼建構,則為 true,否則為 false。 預設為 false

備註

您可以在實作自訂 PageParserFilter 時覆寫 ProcessCodeConstruct 方法,以剖析程式碼建構中包含的程式碼。 處理常式代碼之後,如果剖析器應該進一步處理常式代碼,這個方法會傳回 true ,否則會傳 false 回 。

允許的程式碼建構類型是 CodeConstructType 列舉值。

ProcessCodeConstruct.NET Framework 3.5 版引進。 如需詳細資訊,請參閱版本和相依性

適用於

另請參閱