DesignTimeTemplateParser.ParseTheme(IDesignerHost, String, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在設計時解析主題。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
public:
static System::Web::UI::ControlBuilder ^ ParseTheme(System::ComponentModel::Design::IDesignerHost ^ host, System::String ^ theme, System::String ^ themePath);
public static System.Web.UI.ControlBuilder ParseTheme(System.ComponentModel.Design.IDesignerHost host, string theme, string themePath);
static member ParseTheme : System.ComponentModel.Design.IDesignerHost * string * string -> System.Web.UI.ControlBuilder
Public Shared Function ParseTheme (host As IDesignerHost, theme As String, themePath As String) As ControlBuilder
參數
- host
- IDesignerHost
管理設計師元件。
- theme
- String
要剖析的內容。
- themePath
- String
主題的路徑,用於建立解析器。
傳回
那是 RootBuilder 解析主題的解析器。
例外狀況
在解析主題時發生了錯誤。