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 实例。

适用于