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
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.