UWP - 类电话线未找到 [英] UWP - class PhoneLine not found
问题描述
我试图让从我的应用程序的电话。我应该使用电话线
从命名空间 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屋!