[英]Make call by click on Button
I writing app for Windows Phone 10 我为Windows Phone 10编写应用程序
I try to make phone call by pressing a button like this 我尝试按这样的按钮拨打电话
Windows.ApplicationModel.Calls.PhoneCallManager.ShowPhoneCallUI("phone number", "display name");
But have this error: 但是有这个错误:
Error CS1069 The type name 'PhoneCallManager' could not be found in the namespace 'Windows.ApplicationModel.Calls'.
错误CS1069在名称空间“ Windows.ApplicationModel.Calls”中找不到类型名称“ PhoneCallManager”。 This type has been forwarded to assembly 'Windows.Foundation.UniversalApiContract, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime' Consider adding a reference to that assembly.
此类型已转发给程序集“ Windows.Foundation.UniversalApiContract,版本= 2.0.0.0,文化=中性,PublicKeyToken =空,ContentType = WindowsRuntime”考虑添加对该程序集的引用。
How I can solve this problem? 我该如何解决这个问题?
The error states that you are using a different namespace ( Windows.ApplicationModel.Calls
). 该错误表明您正在使用其他名称空间(
Windows.ApplicationModel.Calls
)。 The answer is in the error. 答案出在错误中。 It is recommending you to include a different assembly, meaning
Windows.Foundation.UniversalApiContract
建议您包括其他程序集,即
Windows.Foundation.UniversalApiContract
Edit: As stated here , I would recommend checking the requirements, there might be something you have missed. 编辑:如前所述在这里 ,我会建议您检查的要求,有可能是一些你已经错过了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.