共用方式為


MobileBroadbandSarManager.TransmissionStateChanged 事件

定義

發生于收到來自裝置的通知,指出目前傳輸狀態的變更時。

注意

若要使用此 API,您必須連絡 Microsoft 以要求自訂功能 microsoft.cellularSARConfiguration_8wekyb3d8bbwe。 如需詳細資訊,請參閱應用程式功能宣告主題中的自訂功能一節,以及建立自訂功能以將驅動程式與硬體支援應用程式配對

// Register
event_token TransmissionStateChanged(TypedEventHandler<MobileBroadbandSarManager, MobileBroadbandTransmissionStateChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
MobileBroadbandSarManager::TransmissionStateChanged_revoker TransmissionStateChanged(auto_revoke_t, TypedEventHandler<MobileBroadbandSarManager, MobileBroadbandTransmissionStateChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<MobileBroadbandSarManager,MobileBroadbandTransmissionStateChangedEventArgs> TransmissionStateChanged;
function onTransmissionStateChanged(eventArgs) { /* Your code */ }
mobileBroadbandSarManager.addEventListener("transmissionstatechanged", onTransmissionStateChanged);
mobileBroadbandSarManager.removeEventListener("transmissionstatechanged", onTransmissionStateChanged);
- or -
mobileBroadbandSarManager.ontransmissionstatechanged = onTransmissionStateChanged;
Public Custom Event TransmissionStateChanged As TypedEventHandler(Of MobileBroadbandSarManager, MobileBroadbandTransmissionStateChangedEventArgs) 

事件類型

Windows 需求

應用程式功能
cellularDeviceControl cellularDeviceIdentity microsoft.cellularSARConfiguration_8wekyb3d8bbwe

適用於