Sdílet prostřednictvím


EmbeddingExtensions.UseMauiEmbeddedApp Metoda

Definice

Přetížení

UseMauiEmbeddedApp<TApp>(MauiAppBuilder)

Nakonfiguruje MauiAppBuilder použití zadaného TApp typu vložené aplikace.

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

Nakonfiguruje MauiAppBuilder použití zadaného TApp typu vložené aplikace.

UseMauiEmbeddedApp<TApp>(MauiAppBuilder)

Zdroj:
EmbeddingExtensions.cs

Nakonfiguruje MauiAppBuilder použití zadaného TApp typu vložené aplikace.

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

Parametry typu

TApp

Typ, který se má použít jako vložená aplikace.

Parametry

builder
MauiAppBuilder

Konfigurace MauiAppBuilder

Návraty

Nakonfigurované MauiAppBuilder.

Platí pro

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

Zdroj:
EmbeddingExtensions.cs

Nakonfiguruje MauiAppBuilder použití zadaného TApp typu vložené aplikace.

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

Parametry typu

TApp

Typ, který se má použít jako vložená aplikace.

Parametry

builder
MauiAppBuilder

Konfigurace MauiAppBuilder

implementationFactory
Func<IServiceProvider,TApp>

Továrna pro vytvoření zadané TApp pomocí služeb poskytovaných v objektu IServiceProvider.

Návraty

Nakonfigurované MauiAppBuilder.

Platí pro