看到這個命名空間:如何使用Windows Runtime,以互操作在.NET 4.5
System.Runtime.InteropServices.WindowsRuntime
哪個.NET和WindowsRuntime之間提供互操作。
例如,你可以在創建metro應用,如地鐵使用WindowsRuntime援引WindowsRuntime的方法,像
Windows.System.UserProfile.UserInformation
但是當你創建一個普通的.NET控制檯應用程序或WPF應用程序,你可以不再直接到達WindowsRuntime命名空間,如Windows.System
我想知道是否可以通過在上述命名空間中使用interop來調用WindowsRuntime方法。
很多預先感謝!