MauiAppBuilder Class
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.
A builder for .NET MAUI cross-platform applications and services.
public ref class MauiAppBuilder sealed : Microsoft::Extensions::Hosting::IHostApplicationBuilder
public ref class MauiAppBuilder sealed
public sealed class MauiAppBuilder : Microsoft.Extensions.Hosting.IHostApplicationBuilder
public sealed class MauiAppBuilder
type MauiAppBuilder = class
interface IHostApplicationBuilder
type MauiAppBuilder = class
Public NotInheritable Class MauiAppBuilder
Implements IHostApplicationBuilder
Public NotInheritable Class MauiAppBuilder
- Inheritance
-
MauiAppBuilder
- Implements
Properties
Configuration |
A collection of configuration providers for the application to compose. This is useful for adding new configuration sources and providers. |
Environment |
Information about the environment an application is running in. |
Logging |
A collection of logging providers for the application to compose. This is useful for adding new logging providers. |
Properties |
Gets a central ___location for sharing state between components during the host building process. |
Services |
A collection of services for the application to compose. This is useful for adding user provided or framework provided services. |
Methods
Build() |
Builds the MauiApp. |
ConfigureContainer<TBuilder>(IServiceProviderFactory<TBuilder>, Action<TBuilder>) |
Registers a IServiceProviderFactory<TContainerBuilder> instance to be used to create the IServiceProvider. |
Explicit Interface Implementations
IHostApplicationBuilder.Configuration | |
IHostApplicationBuilder.Environment | |
IHostApplicationBuilder.Metrics | |
IHostApplicationBuilder.Properties |