VoipPhoneCall.RejectRequested 事件

定义

重要

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

当呼叫被拒绝时引发。

// Register
event_token RejectRequested(TypedEventHandler<VoipPhoneCall, CallRejectEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
VoipPhoneCall::RejectRequested_revoker RejectRequested(auto_revoke_t, TypedEventHandler<VoipPhoneCall, CallRejectEventArgs const&> const& handler) const;
public event TypedEventHandler<VoipPhoneCall,CallRejectEventArgs> RejectRequested;
function onRejectRequested(eventArgs) { /* Your code */ }
voipPhoneCall.addEventListener("rejectrequested", onRejectRequested);
voipPhoneCall.removeEventListener("rejectrequested", onRejectRequested);
- or -
voipPhoneCall.onrejectrequested = onRejectRequested;
Public Custom Event RejectRequested As TypedEventHandler(Of VoipPhoneCall, CallRejectEventArgs) 

事件类型

Windows 要求

应用功能
ID_CAP_VOIP [Windows Phone]

注解

引发此事件后,应用程序必须在 5 秒内调用 NotifyCallEnded

适用于