TemplateControlParser 类

定义

为模板控件实现 ASP.NET 模板分析。Implements ASP.NET template parsing for template controls.

此 API 支持产品基础结构,不能在代码中直接使用。

public ref class TemplateControlParser abstract : System::Web::UI::BaseTemplateParser
public abstract class TemplateControlParser : System.Web.UI.BaseTemplateParser
type TemplateControlParser = class
    inherit BaseTemplateParser
Public MustInherit Class TemplateControlParser
Inherits BaseTemplateParser
继承
继承
TemplateControlParser
派生

注解

类提供TemplateControl类的分析器功能。 TemplateControlParserThe TemplateControlParser class provides parser functionality for the TemplateControl class. TemplateControl类继承的类UserControl包括和Page类。Classes that inherit from TemplateControl class include the UserControl and Page classes. 由于类TemplateControlParser是抽象的, 因此不会直接创建此类的实例。Because the TemplateControlParser class is abstract, an instance of this class is not created directly.

构造函数

TemplateControlParser()

初始化 TemplateControlParser 类的新实例。Initializes a new instance of the TemplateControlParser class.

属性

Text

获取包含要解析的数据字符串。Gets the string that contains the data to be parsed.

(继承自 TemplateParser)

方法

CompileIntoType()

此成员支持 .NET Framework 结构,不能在代码中直接使用。This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

(继承自 TemplateParser)
Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetReferencedType(String)

编译并返回由虚拟路径指定的 PageUserControl 控件的类型。Compiles and returns the type of the Page or UserControl control that is specified by the virtual path.

(继承自 BaseTemplateParser)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
GetUserControlType(String)

编译并返回由虚拟路径指定的 UserControl 对象的类型。Compiles and returns the type of the UserControl object that is specified by the virtual path.

(继承自 BaseTemplateParser)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ParseFile(String, String)

分析由文件的虚拟或物理路径指定的文件的内容。Parses the content of the file that is specified by either its virtual or physical path.

(继承自 TemplateParser)
ProcessError(String)

通过使用指定信息创建新的 ParserError 对象并将其添加到 ParserErrorCollection 集合来报告处理错误。Reports a process error by creating a new ParserError object with the specified message and adding it to a ParserErrorCollection collection.

(继承自 TemplateParser)
ProcessException(Exception)

通过创建新的 ParserError 对象作为指定的 Exception 异常并将其添加到 ParserErrorCollection 集合来报告分析器异常。Reports a parser exception by creating a new ParserError object as the specified Exception exception and adding it to a ParserErrorCollection collection.

(继承自 TemplateParser)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅