BrowserCapabilitiesCodeGenerator.Create 方法

定义

用于内部使用,以协调此类的行为。Used internally to coordinate the behavior of this class.

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

public:
 virtual void Create();
public virtual void Create ();
abstract member Create : unit -> unit
override this.Create : unit -> unit
Public Overridable Sub Create ()

注解

此方法首先遍历 "浏览器" 文件夹。This method first iterates through the "Browsers" folder. 然后,它会调用,它会 ProcessBrowserFiles 加载和分析浏览器定义文件集合中包含的 XML,并将其中包含的信息插入到浏览器的内部集合中。It then calls ProcessBrowserFiles, which loads and parses the XML contained in a collection of browser-definition files and inserts the information contained therein into an internal collection of browsers. 然后,它调用生成源代码的内部方法,并将其注册为对象的全局程序集缓存中的程序集 BrowserCapabilitiesFactoryThen it calls an internal method which generates the source code compiles it, and registers it as an assembly in the global assembly cache for the BrowserCapabilitiesFactory object. 如有必要,此方法将调用重启 Web 服务器的内部方法。If necessary, this method then calls an internal method that restarts the Web server.

适用于