Dela via


AdvertisingManager.GetForUser(User) Method

Definition

Gets the advertising ID for the specified user.

public:
 static AdvertisingManagerForUser ^ GetForUser(User ^ user);
 static AdvertisingManagerForUser GetForUser(User const& user);
public static AdvertisingManagerForUser GetForUser(User user);
function getForUser(user)
Public Shared Function GetForUser (user As User) As AdvertisingManagerForUser

Parameters

user
User

The user to get the advertising ID for.

Returns

An instance of AdvertisingManagerForUser that associates a user ID with their advertising ID.

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Applies to