共用方式為


AccessoryManager.AcceptPhoneCall 方法

定義

多載

AcceptPhoneCall(UInt32)

接受來電。

AcceptPhoneCall(UInt32, PhoneCallAudioEndpoint)

接受來電。

AcceptPhoneCall(UInt32)

接受來電。

public:
 static void AcceptPhoneCall(unsigned int phoneCallId);
/// [Windows.Foundation.Metadata.Overload("AcceptPhoneCall")]
 static void AcceptPhoneCall(uint32_t const& phoneCallId);
[Windows.Foundation.Metadata.Overload("AcceptPhoneCall")]
public static void AcceptPhoneCall(uint phoneCallId);
function acceptPhoneCall(phoneCallId)
Public Shared Sub AcceptPhoneCall (phoneCallId As UInteger)

參數

phoneCallId
UInt32

unsigned int

uint32_t

來電的識別碼。

屬性

Windows 需求

應用程式功能
accessoryManager

備註

呼叫此 API 需要應用程式資訊清單中指定 ID_CAP_SMSID_CAP_SMS_COMPANION 功能。

另請參閱

適用於

AcceptPhoneCall(UInt32, PhoneCallAudioEndpoint)

接受來電。

public:
 static void AcceptPhoneCall(unsigned int phoneCallId, PhoneCallAudioEndpoint endPoint);
/// [Windows.Foundation.Metadata.Overload("AcceptPhoneCallOnEndpoint")]
 static void AcceptPhoneCall(uint32_t const& phoneCallId, PhoneCallAudioEndpoint const& endPoint);
[Windows.Foundation.Metadata.Overload("AcceptPhoneCallOnEndpoint")]
public static void AcceptPhoneCall(uint phoneCallId, PhoneCallAudioEndpoint endPoint);
function acceptPhoneCall(phoneCallId, endPoint)
Public Shared Sub AcceptPhoneCall (phoneCallId As UInteger, endPoint As PhoneCallAudioEndpoint)

參數

phoneCallId
UInt32

unsigned int

uint32_t

撥入電話的識別碼

endPoint
PhoneCallAudioEndpoint

來電的音訊端點

屬性

Windows 需求

應用程式功能
accessoryManager

備註

呼叫此 API 需要應用程式資訊清單中指定 ID_CAP_SMSID_CAP_SMS_COMPANION 功能。

另請參閱

適用於