Share via


WebHostBuilderFactory.CreateFromAssemblyEntryPoint(Assembly, String[]) Method

Definition

Resolves an IWebHostBuilder defined in the entry point of an assembly.

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

Parameters

assembly
Assembly

The assembly to look for an IWebHostBuilder in.

args
String[]

The arguments to use when creating the IWebHostBuilder instance.

Returns

An IWebHostBuilder instance retrieved from the assembly in assembly.

Applies to