IMauiHandlersCollection Interface

Definition

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
Implements

Methods

Name Description
TryGetService(Type, ServiceDescriptor) (Inherited from IMauiServiceCollection)

Extension Methods

Name Description
AddCompatibilityRenderer(IMauiHandlersCollection, Type, Type)
AddCompatibilityRenderer<TControlType,TMauiType,TRenderer>(IMauiHandlersCollection)
AddCompatibilityRenderer<TControlType,TRenderer>(IMauiHandlersCollection)
AddCompatibilityRenderers(IMauiHandlersCollection, Assembly[])
AddHandler(IMauiHandlersCollection, Type, Type)

Registers a handler with the underlying service container via AddTransient.

AddHandler<TType,TTypeRender>(IMauiHandlersCollection)

Registers a handler with the underlying service container via AddTransient.

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

Registers a handler with the underlying service container via AddTransient.

AddMauiControlsHandlers(IMauiHandlersCollection)

Registers the .NET MAUI Controls handlers with the handlers collection.

AddMauiMaps(IMauiHandlersCollection)

Registers the .NET MAUI Maps handlers that are needed to render the map control.

TryAddCompatibilityRenderer(IMauiHandlersCollection, Type, Type)
TryAddHandler(IMauiHandlersCollection, Type, Type)

Registers a handler with the underlying service container via AddTransient.

TryAddHandler<TType,TTypeRender>(IMauiHandlersCollection)

Registers a handler with the underlying service container via AddTransient.

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

Registers a handler with the underlying service container via AddTransient.

Applies to