TemplateParser 類別

定義

做為 ASP.NET 檔案剖析器的抽象基底類別。Serves as the abstract base class for ASP.NET file parsers.

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public ref class TemplateParser abstract : System::Web::UI::BaseParser
public abstract class TemplateParser : System.Web.UI.BaseParser
type TemplateParser = class
    inherit BaseParser
Public MustInherit Class TemplateParser
Inherits BaseParser
繼承
TemplateParser
衍生

備註

TemplateParser類別提供剖析器類別的一般功能。The TemplateParser class provides the common functionality for parser classes. 因為類別TemplateParser是抽象的, 所以不會直接建立此類別的實例。Because the TemplateParser class is abstract, an instance of this class is not created directly.

屬性

Text

取得包含要剖析之資料的字串。Gets the string that contains the data to be parsed.

方法

CompileIntoType()

此成員支援 .NET Framework 基礎結構,並不能直接使用於您的程式碼中。This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。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.

ParseTemplate(String, String, Boolean)

剖析範本。Parses the template.

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.

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.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於

另請參閱