AppHostBuilderExtensions.AddMauiMaps(IMauiHandlersCollection) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.