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 列挙値の 1 つ。

code
String

コード コンストラクト内のコードを含む文字列リテラル。

返品

true パーサーがさらにコードコンストラクトを処理する必要がある場合。それ以外の場合は false。 既定値は false です。

注釈

カスタム ProcessCodeConstructを実装するときに、PageParserFilter メソッドをオーバーライドして、コード コンストラクトに含まれるコードを解析できます。 コードの処理後、パーサーがコードをさらに処理する必要がある場合、このメソッドは true を返します。それ以外の場合は、 falseを返します。

許可されるコード コンストラクトの型は、 CodeConstructType 列挙値です。

ProcessCodeConstruct は、.NET Framework バージョン 3.5 で導入されています。 詳細については、「 バージョンと依存関係」を参照してください。

適用対象

こちらもご覧ください