共用方式為


AppHostBuilderExtensions.UseMauiMaps(MauiAppBuilder) 方法

定義

設定 MauiAppBuilder 以新增控件的支援 Map

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

參數

builder
MauiAppBuilder

要設定的 MauiAppBuilder

例外狀況

在 Windows 上擲回,因為目前未針對 Windows 實作地圖控件。

適用於