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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.