问题描述
我正在尝试获取(并更改)Windows Phone上用户帐户的同步设置。
I am trying to get (and change) the synchronization settings of an user account on my Windows Phone.
根据此
https://docs.microsoft.com/en-us/uwp/api/windows.applicationmodel .userdataaccounts.systemaccess.userdataaccountsystemaccessmanager
UserDataAccountSystemAccessManager类应具有静态方法
GetDeviceAccountConfigurationAsync。但它只有AddAndShowDeviceAccountsAsync方法,而不是API参考中的其他方法。
According to this https://docs.microsoft.com/en-us/uwp/api/windows.applicationmodel.userdataaccounts.systemaccess.userdataaccountsystemaccessmanager theUserDataAccountSystemAccessManager class should have a static method GetDeviceAccountConfigurationAsync. But it has only the AddAndShowDeviceAccountsAsync method and not the others from the API reference.
我在Visual Studio 2015中使用Windows 10创建了一个UWP项目作为目标。问题所在的任何想法是什么?
I created an UWP project in Visual Studio 2015 with Windows 10 as target. Any ideas where the problem is?
推荐答案
GetDeviceAccountConfigurationAsync方法将在10.0.14393.0的版本中添加。
The GetDeviceAccountConfigurationAsync method is be added in the version of 10.0.14393.0.
因此,您应该可以在
属性目标版本 / strong>至 Windows 10周年纪念版(10.0; Build 14393)。
So you should be able to set the Targer version in Properties to Windows 10 Anniversary Edition(10.0; Build 14393).
最诚挚的问候,
Jayden Gu
Jayden Gu
这篇关于[UWP] UserDataAccountSystemAccessManager不包含其API引用的函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!