GuidanceTelemetryCollector.Enabled 屬性

定義

取得或設定值,這個值表示是否收集位置數據以供流量報告使用。

注意

此 API 不適用於所有 Windows 應用程式。 除非您的開發人員帳戶是由 Microsoft 特別布建,否則呼叫此 API 會在運行時間失敗。 如需 Windows.Services.Maps.Guidance 命名空間的詳細資訊,請與您的Microsoft帳戶小組代表合作。

public:
 property bool Enabled { bool get(); void set(bool value); };
bool Enabled();

void Enabled(bool value);
public bool Enabled { get; set; }
var boolean = guidanceTelemetryCollector.enabled;
guidanceTelemetryCollector.enabled = boolean;
Public Property Enabled As Boolean

屬性值

Boolean

bool

如果收集位置數據以進行流量報告,true;否則,false

適用於