AccessoryManager.EndPhoneCall(UInt32) 方法

定义

结束给定电话呼叫标识符的电话呼叫。

public:
 static void EndPhoneCall(unsigned int phoneCallId);
 static void EndPhoneCall(uint32_t const& phoneCallId);
public static void EndPhoneCall(uint phoneCallId);
function endPhoneCall(phoneCallId)
Public Shared Sub EndPhoneCall (phoneCallId As UInteger)

参数

phoneCallId
UInt32

unsigned int

uint32_t

电话呼叫的标识符。 从 PhoneNotificationTriggerDetail.CallDetails.CallID 属性获取此值,用于活动的传入电话呼叫。

Windows 要求

应用功能
accessoryManager

注解

调用此 API 需要在应用程序清单中指定 ID_CAP_SMSID_CAP_SMS_COMPANION 功能。

适用于