AppHostBuilderExtensions.AddMauiMaps(IMauiHandlersCollection) 方法

定义

注册呈现地图控件所需的 .NET MAUI 地图处理程序。

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

参数

handlersCollection
IMauiHandlersCollection

要在其中注册映射处理程序的实例 IMauiHandlersCollection

例外

由于当前未为 Windows 实现地图控件,因此在 Windows 上引发。

适用于