AccessoryManager.RejectPhoneCall 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
RejectPhoneCall(UInt32) |
拒绝具有给定标识符的电话呼叫。 |
RejectPhoneCall(UInt32, UInt32) |
拒绝具有给定标识符的电话呼叫并发送短信响应。 |
RejectPhoneCall(UInt32)
拒绝具有给定标识符的电话呼叫。
public:
static void RejectPhoneCall(unsigned int phoneCallId);
/// [Windows.Foundation.Metadata.Overload("RejectPhoneCall")]
static void RejectPhoneCall(uint32_t const& phoneCallId);
[Windows.Foundation.Metadata.Overload("RejectPhoneCall")]
public static void RejectPhoneCall(uint phoneCallId);
function rejectPhoneCall(phoneCallId)
Public Shared Sub RejectPhoneCall (phoneCallId As UInteger)
参数
- phoneCallId
-
UInt32
unsigned int
uint32_t
电话呼叫标识符。
- 属性
Windows 要求
应用功能 |
accessoryManager
|
注解
调用此 API 需要在应用程序清单中指定 ID_CAP_SMS 和 ID_CAP_SMS_COMPANION 功能。
另请参阅
适用于
RejectPhoneCall(UInt32, UInt32)
拒绝具有给定标识符的电话呼叫并发送短信响应。
public:
static void RejectPhoneCall(unsigned int phoneCallId, unsigned int textResponseID);
/// [Windows.Foundation.Metadata.Overload("RejectPhoneCallWithText")]
static void RejectPhoneCall(uint32_t const& phoneCallId, uint32_t const& textResponseID);
[Windows.Foundation.Metadata.Overload("RejectPhoneCallWithText")]
public static void RejectPhoneCall(uint phoneCallId, uint textResponseID);
function rejectPhoneCall(phoneCallId, textResponseID)
Public Shared Sub RejectPhoneCall (phoneCallId As UInteger, textResponseID As UInteger)
参数
- phoneCallId
-
UInt32
unsigned int
uint32_t
电话呼叫标识符。
- textResponseID
-
UInt32
unsigned int
uint32_t
TextResponse 的标识符。
- 属性
Windows 要求
应用功能 |
accessoryManager
|
注解
调用此 API 需要在应用程序清单中指定 ID_CAP_SMS 和 ID_CAP_SMS_COMPANION 功能。
另请参阅
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈