- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
在一些 Windows 8 应用程序代码示例中,我看到了由这些预处理器指令封装的代码块
#if !WINRT_NOT_PRESENT
#endif
WinRT 不是总是存在于 Windows 8 商店应用程序中吗?
最佳答案
这由 Microsoft 的 NotificationsExtensions 库使用。如果要使用 ASP.NET 将推送通知发送到 Windows 推送通知服务 (WNS),则需要指定此构建符号。
来自 Quickstart: Using the NotificationsExtensions library in your code (Windows) :
You can also use NotificationsExtensions in your app server code if you are using ASP.NET to send push notifications to Windows Push Notification Services (WNS). The only caveat is that you must add the WINRT_NOT_PRESENT compilation build symbol in the NotificationsExtensions project properties.
关于c# - WINRT_NOT_PRESENT 的目的是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13492520/
在一些 Windows 8 应用程序代码示例中,我看到了由这些预处理器指令封装的代码块 #if !WINRT_NOT_PRESENT #endif WinRT 不是总是存在于 Windows 8 商店
我是一名优秀的程序员,十分优秀!