AdvertisingManager 類別

定義

提供屬性,讓呼叫端擷取廣告識別碼。

public ref class AdvertisingManager abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
class AdvertisingManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
public static class AdvertisingManager
Public Class AdvertisingManager
繼承
Object Platform::Object IInspectable AdvertisingManager
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

AdvertisingManager 是靜態執行時間物件,不需要擷取或建立。

版本歷程記錄

Windows 版本 SDK 版本 新增值
1607 14393 GetForUser

屬性

AdvertisingId

擷取用來提供更相關廣告的唯一識別碼。 如果廣告識別碼功能已關閉,則不會擷取任何識別碼。

方法

GetForUser(User)

取得指定使用者的廣告識別碼。

適用於

另請參閱