問題タブ [mobile-broadband-api]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
730 参照

c# - MBN デバイスが存在しない場合の IMbnInterfaceManager::GetInterfaces からの hresult

Windows 7 で動作する次のコードがあります。

MBN デバイスが存在する場合は問題ありませんが、MBN デバイスが存在しない場合、GetInterfaces() の呼び出しで次の例外が発生します。

{System.Runtime.InteropServices.COMException (0x80070490): 要素が見つかりません。(HRESULT からの例外: 0x80070490) MbnApi.IMbnInterfaceManager.GetInterfaces() で foo.Program.configureConnection() で foo}

質問 GetInterfaces を呼び出す前に、MBN インターフェイスを確認するために行うべきことはありますか? この例外を簡単にキャッチできますが、この例外がインターフェイスがないことと同じであると述べているドキュメントは見つかりません。

私が statckoverflow で見つけた最も近いものは 、C# を使用したモバイル ブロードバンド API Windows 7 および Windows 8 で苦労していること です。