IWebHostBuilder.Build Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008.
Builds an IWebHost which hosts a web application.
public:
Microsoft::AspNetCore::Hosting::IWebHost ^ Build();
public Microsoft.AspNetCore.Hosting.IWebHost Build();
[System.Obsolete("IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008.", DiagnosticId="ASPDEPR008", UrlFormat="https://aka.ms/aspnet/deprecate/008")]
public Microsoft.AspNetCore.Hosting.IWebHost Build();
abstract member Build : unit -> Microsoft.AspNetCore.Hosting.IWebHost
[<System.Obsolete("IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008.", DiagnosticId="ASPDEPR008", UrlFormat="https://aka.ms/aspnet/deprecate/008")>]
abstract member Build : unit -> Microsoft.AspNetCore.Hosting.IWebHost
Public Function Build () As IWebHost
Returns
- Attributes