UWP帐户信息权限

时间:2019-07-22 01:08:11

标签: c# windows uwp

My.Resources.cursor

Package.appxmanifest已设置功能:

Imports System

Private Sub Form1_Load(ByVal sender As Object, ByVal e as EventArgs) Handles MyBase.Load
    Dim myCursor As New Cursor(New IO.MemoryStream(My.Resources.cursor.cursor)) 'Exception here indicates a 32bpp cursor.
End Sub

使用上面的代码,我的结果不一致。我有时会在运行应用程序时看到提示以获取权限,有时却没有。我了解它不会提示是否已经同意,但是在完全卸载和部署(调试)应用程序后,会出现不一致的情况。但是,同意后,似乎没有将Windows设置中的应用程序的“帐户信息”设置切换为“开”。

enter image description here

运行Windows 10 1903,但还记得在1809年出现此问题。

0 个答案:

没有答案