Share via


AdvertisingManagerForUser 类

定义

将用户与广告 ID 相关联。

public ref class AdvertisingManagerForUser sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AdvertisingManagerForUser final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AdvertisingManagerForUser
Public NotInheritable Class AdvertisingManagerForUser
继承
Object Platform::Object IInspectable AdvertisingManagerForUser
属性

Windows 要求

设备系列
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)

注解

此类的实例由 AdvertisingManager.GetForUser 方法返回。

属性

AdvertisingId

获取用于向用户提供更相关的广告的唯一 ID。

User

获取与广告 ID 关联的用户。

适用于

另请参阅