WebAssemblyHostBuilder.CreateDefault(String[]) Method

Definition

Creates an instance of WebAssemblyHostBuilder using the most common conventions and settings.

C#
public static Microsoft.AspNetCore.Components.WebAssembly.Hosting.WebAssemblyHostBuilder CreateDefault (string[] args = default);
C#
public static Microsoft.AspNetCore.Components.WebAssembly.Hosting.WebAssemblyHostBuilder CreateDefault (string[]? args = default);

Parameters

args
String[]

The argument passed to the application's main method.

Returns

A WebAssemblyHostBuilder.

Applies to

Product Versions
ASP.NET Core 3.1, 5.0, 6.0, 7.0, 8.0, 9.0