UserExtendedProperties Class

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Allows an app to obtain an anonymous identifier for the user of the device.

Inheritance Hierarchy

System..::.Object
  Microsoft.Phone.Info..::.UserExtendedProperties

Namespace:  Microsoft.Phone.Info
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

Syntax

Public NotInheritable Class UserExtendedProperties
public static class UserExtendedProperties

The UserExtendedProperties type exposes the following members.

Methods

  Name Description
GetValue Retrieves an object representing the specified user property. The two available properties are ANID and ANID2.
TryGetValue Retrieves an object representing the specified user property. The two available properties are ANID and ANID2.

Top

Remarks

The UserExtendedProperties API exposes two properties: ANID and ANID2.

  • ANID can only be accessed from Windows Phone OS 7.0 and Windows Phone OS 7.1 apps that use the Microsoft Advertising SDK for Windows Phone.

  • ANID2 can only be accessed from Windows Phone 8 apps.

Capabilities

If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.

ID_CAP_IDENTITY_USER

Windows Phone 8, Windows Phone OS 7.1

For more info, see App capabilities and hardware requirements for Windows Phone 8.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Phone.Info Namespace