Partager via


EmbeddingExtensions.UseMauiEmbeddedApp Méthode

Définition

Surcharges

UseMauiEmbeddedApp<TApp>(MauiAppBuilder)

Configure l’utilisation MauiAppBuilder spécifiée TApp comme type d’application incorporé.

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

Configure l’utilisation MauiAppBuilder spécifiée TApp comme type d’application incorporé.

UseMauiEmbeddedApp<TApp>(MauiAppBuilder)

Source:
EmbeddingExtensions.cs

Configure l’utilisation MauiAppBuilder spécifiée TApp comme type d’application incorporé.

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

Paramètres de type

TApp

Type à utiliser comme application incorporée.

Paramètres

builder
MauiAppBuilder

MauiAppBuilder à configurer.

Retours

L’élément MauiAppBuilder configuré.

S’applique à

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

Source:
EmbeddingExtensions.cs

Configure l’utilisation MauiAppBuilder spécifiée TApp comme type d’application incorporé.

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

Paramètres de type

TApp

Type à utiliser comme application incorporée.

Paramètres

builder
MauiAppBuilder

MauiAppBuilder à configurer.

implementationFactory
Func<IServiceProvider,TApp>

Fabrique permettant de créer l’objet spécifié TApp à l’aide des services fournis dans un IServiceProvider.

Retours

L’élément MauiAppBuilder configuré.

S’applique à