AppHostBuilderExtensions.UseMauiEmbedding Method
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.
UseMauiEmbedding<TApp>(MauiAppBuilder) | |
UseMauiEmbedding<TApp>(MauiAppBuilder, Func<IServiceProvider,TApp>) |
public:
generic <typename TApp>
where TApp : class, Microsoft::Maui::IApplication[System::Runtime::CompilerServices::Extension]
static Microsoft::Maui::Hosting::MauiAppBuilder ^ UseMauiEmbedding(Microsoft::Maui::Hosting::MauiAppBuilder ^ builder);
C#
public static Microsoft.Maui.Hosting.MauiAppBuilder UseMauiEmbedding<TApp>(this Microsoft.Maui.Hosting.MauiAppBuilder builder) where TApp : class, Microsoft.Maui.IApplication;
static member UseMauiEmbedding : Microsoft.Maui.Hosting.MauiAppBuilder -> Microsoft.Maui.Hosting.MauiAppBuilder (requires 'App : null and 'App :> Microsoft.Maui.IApplication)
<Extension()>
Public Function UseMauiEmbedding(Of TApp As {Class, IApplication}) (builder As MauiAppBuilder) As MauiAppBuilder
Type Parameters
- TApp
Parameters
- builder
- MauiAppBuilder
Returns
Applies to
.NET MAUI 9 and .NET MAUI 8
Product | Versions |
---|---|
.NET MAUI | 8, 9 |
public:
generic <typename TApp>
where TApp : class, Microsoft::Maui::IApplication[System::Runtime::CompilerServices::Extension]
static Microsoft::Maui::Hosting::MauiAppBuilder ^ UseMauiEmbedding(Microsoft::Maui::Hosting::MauiAppBuilder ^ builder, Func<IServiceProvider ^, TApp> ^ implementationFactory);
C#
public static Microsoft.Maui.Hosting.MauiAppBuilder UseMauiEmbedding<TApp>(this Microsoft.Maui.Hosting.MauiAppBuilder builder, Func<IServiceProvider,TApp> implementationFactory) where TApp : class, Microsoft.Maui.IApplication;
static member UseMauiEmbedding : Microsoft.Maui.Hosting.MauiAppBuilder * Func<IServiceProvider, 'App (requires 'App : null and 'App :> Microsoft.Maui.IApplication)> -> Microsoft.Maui.Hosting.MauiAppBuilder (requires 'App : null and 'App :> Microsoft.Maui.IApplication)
<Extension()>
Public Function UseMauiEmbedding(Of TApp As {Class, IApplication}) (builder As MauiAppBuilder, implementationFactory As Func(Of IServiceProvider, TApp)) As MauiAppBuilder
Type Parameters
- TApp
Parameters
- builder
- MauiAppBuilder
- implementationFactory
- Func<IServiceProvider,TApp>
Returns
Applies to
.NET MAUI 9 and .NET MAUI 8
Product | Versions |
---|---|
.NET MAUI | 8, 9 |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET MAUI feedback
.NET MAUI is an open source project. Select a link to provide feedback: