【发布时间】:2012-04-25 07:10:13
【问题描述】:
我看到了这个命名空间:
System.Runtime.InteropServices.WindowsRuntime
提供 .NET 和 WindowsRuntime 之间的互操作。
例如,您可以在创建 Metro 应用程序时调用 WindowsRuntime 中的方法,因为 Metro 使用 WindowsRuntime,就像
Windows.System.UserProfile.UserInformation
但是当你创建一个普通的 .NET 控制台应用程序或 WPF 应用程序时,你无法再直接访问 Windows.System 等 WindowsRuntime 命名空间
我想知道是否可以通过在上述命名空间中使用互操作来调用 WindowsRuntime 方法。
提前非常感谢!
【问题讨论】:
标签: c# .net microsoft-metro windows-runtime .net-4.5