我在 UWP 中工作,我无法使用系统 API 中的 HttpListener
类。 Windows API 中有新功能吗?
最佳答案
is there a new feauture in the Windows API?
并非所有 .NET API 都在 UWP 应用程序中受支持。你可以查看 .NET for UWP apps查看 UWP 中所有受支持的 .NET API。
在您的情况下,您应该查看:StreamSocketListener在 Windows.Networking.Sockets Namespace .您可以使用 StreamSocketListener 自己制作一个类似的 httplistener。
关于c# - UWP 中有 HttpListener 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42154660/