UWP - 类电话线未找到 [英] UWP - class PhoneLine not found

查看:330
本文介绍了UWP - 类电话线未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让从我的应用程序的电话。我应该使用电话线从命名空间 Windows.ApplicationModel.Calls; 。但电话线不是 Windows.ApplicationModel.Calls; ,但根据的文档它应该在那里。当我把它添加到源代码,如 Windows.ApplicationModel.Calls.PhoneLine 这一点,并在它悬停,有一个提示说:

I'm trying to make phone calls from my application. I'm supposed to use PhoneLine from namespace Windows.ApplicationModel.Calls;. But PhoneLine is not in Windows.ApplicationModel.Calls;, however according to documentation it should be there. When I add it to source code like Windows.ApplicationModel.Calls.PhoneLine this and hover over it, there is a hint saying:

类型名称电话线无法在命名空间中找到'Windows.ApplicationModel.Calls。此类型已转发到程序集​​Windows.Foundation.UniversalApiContract,版本= 1.0.0.0,文化=中立,PublickKeyToken = NULL,则contentType = WindowsRuntime。考虑加入到该程序集的引用。

于是,我试图访问电话线通过 Windows.Foundation.UniversalApiContract ,但VS说,电话线的Windows存在。 Foundation.UniversalApiContract eighter。

So I tried to access PhoneLine through Windows.Foundation.UniversalApiContract', but VS says that PhoneLine does not exist in Windows.Foundation.UniversalApiContract eighter.

我已经检查电话呼叫 VoIP电话在应用程序清单,但没有成功。你能帮助我吗?谢谢你。

I have checked Phone Call and VOIP Calls in app manifest with no success. Can you help me with that? Thanks.

推荐答案

您必须包括的Windows Mobile扩展了UWP 。 。只需添加一个新的参考和进入Univerval的Windows /扩展

You have to include Windows Mobile Extensions for the UWP. Just add a new reference and go into Univerval Windows/Extensions.

如果需要,可以在github下面的示例:的 https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/PhoneCall

If needed, you can find the following sample on github : https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/PhoneCall

这篇关于UWP - 类电话线未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆