AccessoryManager.RejectPhoneCall 方法

定义

重载

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_SMSID_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_SMSID_CAP_SMS_COMPANION 功能。

另请参阅

适用于