Share via


EmbeddingExtensions.UseMauiEmbeddedApp Method

Definition

Overloads

UseMauiEmbeddedApp<TApp>(MauiAppBuilder)

Configures the MauiAppBuilder to use the specified TApp as the embedded application type.

UseMauiEmbeddedApp<TApp>(MauiAppBuilder, Func<IServiceProvider,TApp>)

Configures the MauiAppBuilder to use the specified TApp as the embedded application type.

UseMauiEmbeddedApp<TApp>(MauiAppBuilder)

Source:
EmbeddingExtensions.cs

Configures the MauiAppBuilder to use the specified TApp as the embedded application type.

public:
generic <typename TApp>
 where TApp : class, Microsoft::Maui::IApplication[System::Runtime::CompilerServices::Extension]
 static Microsoft::Maui::Hosting::MauiAppBuilder ^ UseMauiEmbeddedApp(Microsoft::Maui::Hosting::MauiAppBuilder ^ builder);
public static Microsoft.Maui.Hosting.MauiAppBuilder UseMauiEmbeddedApp<TApp> (this Microsoft.Maui.Hosting.MauiAppBuilder builder) where TApp : class, Microsoft.Maui.IApplication;
static member UseMauiEmbeddedApp : Microsoft.Maui.Hosting.MauiAppBuilder -> Microsoft.Maui.Hosting.MauiAppBuilder (requires 'App : null and 'App :> Microsoft.Maui.IApplication)
<Extension()>
Public Function UseMauiEmbeddedApp(Of TApp As {Class, IApplication}) (builder As MauiAppBuilder) As MauiAppBuilder

Type Parameters

TApp

The type to use as the embedded application.

Parameters

builder
MauiAppBuilder

The MauiAppBuilder to configure.

Returns

The configured MauiAppBuilder.

Applies to

UseMauiEmbeddedApp<TApp>(MauiAppBuilder, Func<IServiceProvider,TApp>)

Source:
EmbeddingExtensions.cs

Configures the MauiAppBuilder to use the specified TApp as the embedded application type.

public:
generic <typename TApp>
 where TApp : class, Microsoft::Maui::IApplication[System::Runtime::CompilerServices::Extension]
 static Microsoft::Maui::Hosting::MauiAppBuilder ^ UseMauiEmbeddedApp(Microsoft::Maui::Hosting::MauiAppBuilder ^ builder, Func<IServiceProvider ^, TApp> ^ implementationFactory);
public static Microsoft.Maui.Hosting.MauiAppBuilder UseMauiEmbeddedApp<TApp> (this Microsoft.Maui.Hosting.MauiAppBuilder builder, Func<IServiceProvider,TApp> implementationFactory) where TApp : class, Microsoft.Maui.IApplication;
static member UseMauiEmbeddedApp : 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 UseMauiEmbeddedApp(Of TApp As {Class, IApplication}) (builder As MauiAppBuilder, implementationFactory As Func(Of IServiceProvider, TApp)) As MauiAppBuilder

Type Parameters

TApp

The type to use as the embedded application.

Parameters

builder
MauiAppBuilder

The MauiAppBuilder to configure.

implementationFactory
Func<IServiceProvider,TApp>

A factory to create the specified TApp using the services provided in a IServiceProvider.

Returns

The configured MauiAppBuilder.

Applies to