Share via


VoipPhoneCall.HoldRequested 事件

定义

重要

Windows.Phone.Networking.Voip 命名空间中的类型已弃用,将来的 Windows 版本中可能不可用。 请改用 Windows.ApplicationModel.Calls 命名空间中的等效类型。

引发以提醒 VoIP 应用应暂停呼叫。

// Register
event_token HoldRequested(TypedEventHandler<VoipPhoneCall, CallStateChangeEventArgs const&> const& handler) const;

// Revoke with event_token
void HoldRequested(event_token const* cookie) const;

// Revoke with event_revoker
VoipPhoneCall::HoldRequested_revoker HoldRequested(auto_revoke_t, TypedEventHandler<VoipPhoneCall, CallStateChangeEventArgs const&> const& handler) const;
public event TypedEventHandler<VoipPhoneCall,CallStateChangeEventArgs> HoldRequested;
function onHoldRequested(eventArgs) { /* Your code */ }
voipPhoneCall.addEventListener("holdrequested", onHoldRequested);
voipPhoneCall.removeEventListener("holdrequested", onHoldRequested);
- or -
voipPhoneCall.onholdrequested = onHoldRequested;
Public Custom Event HoldRequested As TypedEventHandler(Of VoipPhoneCall, CallStateChangeEventArgs) 

事件类型

Windows 要求

应用功能
ID_CAP_VOIP [Windows Phone]

注解

引发此事件后,应用程序需要在 5 秒内调用 NotifyCallHeld

适用于