WebHostBuilderFactory.CreateFromAssemblyEntryPoint(Assembly, String[]) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
IWebHostBuilder解析元件進入點中定義的 。
public:
static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ CreateFromAssemblyEntryPoint(System::Reflection::Assembly ^ assembly, cli::array <System::String ^> ^ args);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder CreateFromAssemblyEntryPoint (System.Reflection.Assembly assembly, string[] args);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder? CreateFromAssemblyEntryPoint (System.Reflection.Assembly assembly, string[] args);
static member CreateFromAssemblyEntryPoint : System.Reflection.Assembly * string[] -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
Public Shared Function CreateFromAssemblyEntryPoint (assembly As Assembly, args As String()) As IWebHostBuilder
參數
- assembly
- Assembly
要尋找 的 IWebHostBuilder 元件。
- args
- String[]
建立 IWebHostBuilder 實例時要使用的引數。
傳回
從 IWebHostBuilder 中的元件擷 assembly
取的實例。