Share via


AppHostBuilderExtensions.AddMauiMaps(IMauiHandlersCollection) Method

Definition

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Maui::Hosting::IMauiHandlersCollection ^ AddMauiMaps(Microsoft::Maui::Hosting::IMauiHandlersCollection ^ handlersCollection);
public static Microsoft.Maui.Hosting.IMauiHandlersCollection AddMauiMaps (this Microsoft.Maui.Hosting.IMauiHandlersCollection handlersCollection);
static member AddMauiMaps : Microsoft.Maui.Hosting.IMauiHandlersCollection -> Microsoft.Maui.Hosting.IMauiHandlersCollection
<Extension()>
Public Function AddMauiMaps (handlersCollection As IMauiHandlersCollection) As IMauiHandlersCollection

Parameters

handlersCollection
IMauiHandlersCollection

An instance of IMauiHandlersCollection on which to register the map handlers.

Exceptions

Thrown on Windows because the maps control currently is not implemented for Windows.

Applies to