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
public sealed class MauiAppBuilder
type MauiAppBuilder = class
Public NotInheritable Class MauiAppBuilder
- Inheritance
-
MauiAppBuilder
Properties
Configuration |
A collection of configuration providers for the application to compose. This is useful for adding new configuration sources and providers. |
Logging |
A collection of logging providers for the application to compose. This is useful for adding new logging providers. |
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. |