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 向基础服务容器注册处理程序。

适用于