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]

Комментарии

После возникновения этого события приложение должно вызвать NotifyCallHeld в течение 5 секунд.

Применяется к