Windows phone 8 ANID2返回null

Windows phone 8 ANID2返回null,windows-phone-8,Windows Phone 8,我尝试在我的Windows Phone 8应用程序中获取ANID2 但它总是返回null 我的代码是: object anid; DeviceExtendedProperties.TryGetValue("ANID2", out anid); 如果我尝试GetValue而不是TryGetValue(“ANID2”) 我得到以下例外情况: 指定的参数超出了有效值的范围 设置了“ID\u CAP\u IDENTITY\u USER”功能我的错误是我对ANID2使用了“DeviceExtended

我尝试在我的Windows Phone 8应用程序中获取ANID2

但它总是返回null

我的代码是:

object anid;

DeviceExtendedProperties.TryGetValue("ANID2", out anid);
如果我尝试GetValue而不是TryGetValue(“ANID2”) 我得到以下例外情况:

指定的参数超出了有效值的范围


设置了“ID\u CAP\u IDENTITY\u USER”功能

我的错误是我对ANID2使用了“DeviceExtendedProperties”。但您必须使用UserExtendedProperties.GetValue(“ANID2”)