共用方式為


PlaceInfoHelper 類別

定義

使用在搜尋中找到的企業和位置,針對裝置本機快取的數據,建立 PlaceInfo 實例。

public ref class PlaceInfoHelper abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Services.Maps.LocalSearchContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PlaceInfoHelper final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Services.Maps.LocalSearchContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class PlaceInfoHelper
Public Class PlaceInfoHelper
繼承
Object Platform::Object IInspectable PlaceInfoHelper
屬性

Windows 需求

裝置系列
Windows Desktop Extension SDK (已於 10.0.16299.0 引進)
Windows Mobile Extension SDK (已於 10.0.16299.0 引進)
Windows Team Extension SDK (已於 10.0.16299.0 引進)
Windows 10, version 1809 (已於 10.0.17763.0 引進)
API contract
Windows.Services.Maps.LocalSearchContract (已於 v4.0 引進)

方法

CreateFromLocalLocation(LocalLocation)

建立 PlaceInfo 實例。

適用於