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

備註

ProcessCodeConstruct 實作自訂 PageParserFilter. 處理完程式碼後,若解析器需繼續處理,此方法會回傳 true ;否則回傳 false

允許的程式碼結構類型為 CodeConstructType 列舉值。

ProcessCodeConstruct 於 .NET Framework 3.5 版本中引入。 欲了解更多資訊,請參閱 版本與相依關係。

適用於

另請參閱