PageParserFilter.ProcessCodeConstruct(CodeConstructType, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a value that indicates whether a code block should be processed by subsequent parser filters.
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
Parameters
- codeType
- CodeConstructType
One of the CodeConstructType enumeration values that identifies the type of the code construct.
- code
- String
The string literal that contains the code inside the code construct.
Returns
true
if the parser should process a code construct further; otherwise, false
. The default is false
.
Remarks
You can override the ProcessCodeConstruct method to parse code contained in code constructs when implementing a custom PageParserFilter. After processing the code, this method returns true
if the parser should process the code further; otherwise, it returns false
.
The type of allowed code constructs are the CodeConstructType enumeration values.
ProcessCodeConstruct is introduced in the .NET Framework version 3.5. For more information, see Versions and Dependencies.