共用方式為


IMauiHandlersCollection 介面

定義

public interface class IMauiHandlersCollection : Microsoft::Extensions::DependencyInjection::IServiceCollection, Microsoft::Maui::Hosting::IMauiServiceCollection, System::Collections::Generic::ICollection<Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^>, System::Collections::Generic::IEnumerable<Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^>, System::Collections::Generic::IList<Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^>
public interface IMauiHandlersCollection : Microsoft.Extensions.DependencyInjection.IServiceCollection, Microsoft.Maui.Hosting.IMauiServiceCollection, System.Collections.Generic.ICollection<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>, System.Collections.Generic.IEnumerable<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>, System.Collections.Generic.IList<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>
type IMauiHandlersCollection = interface
    interface IMauiServiceCollection
    interface IServiceCollection
    interface IList<ServiceDescriptor>
    interface ICollection<ServiceDescriptor>
    interface seq<ServiceDescriptor>
    interface IEnumerable
Public Interface IMauiHandlersCollection
Implements ICollection(Of ServiceDescriptor), IEnumerable(Of ServiceDescriptor), IList(Of ServiceDescriptor), IMauiServiceCollection, IServiceCollection
實作

方法

TryGetService(Type, ServiceDescriptor) (繼承來源 IMauiServiceCollection)

擴充方法

AddCompatibilityRenderer(IMauiHandlersCollection, Type, Type)
AddCompatibilityRenderer<TControlType,TRenderer>(IMauiHandlersCollection)
AddCompatibilityRenderer<TControlType,TMauiType,TRenderer>(IMauiHandlersCollection)
AddCompatibilityRenderers(IMauiHandlersCollection, Assembly[])
TryAddCompatibilityRenderer(IMauiHandlersCollection, Type, Type)
AddMauiControlsHandlers(IMauiHandlersCollection)
AddMauiMaps(IMauiHandlersCollection)

註冊轉譯地圖控件所需的 .NET MAUI 地圖 處理程式。

AddHandler(IMauiHandlersCollection, Type, Type)

透過 AddTransient 向基礎服務容器註冊處理程式。

AddHandler<TType>(IMauiHandlersCollection, Func<IServiceProvider,IElementHandler>)

透過 AddTransient 向基礎服務容器註冊處理程式。

AddHandler<TType,TTypeRender>(IMauiHandlersCollection)

透過 AddTransient 向基礎服務容器註冊處理程式。

TryAddHandler(IMauiHandlersCollection, Type, Type)

透過 AddTransient 向基礎服務容器註冊處理程式。

TryAddHandler<TType>(IMauiHandlersCollection, Func<IServiceProvider,IElementHandler>)

透過 AddTransient 向基礎服務容器註冊處理程式。

TryAddHandler<TType,TTypeRender>(IMauiHandlersCollection)

透過 AddTransient 向基礎服務容器註冊處理程式。

適用於