dotnet/runtime

Incorrect use of DisableMediaInsertionPrompt

Open

#28,605 建立於 2019年2月1日

在 GitHub 查看
 (7 留言) (0 反應) (0 負責人)C# (5,445 fork)batch import
area-System.IOhelp wanted

倉庫指標

Star
 (17,886 star)
PR 合併指標
 (平均合併 12天 11小時) (30 天內合併 661 個 PR)

描述

Unless I'm very much confused, it appears that the FileSystemEnumerator constructor uses DisableMediaInsertionPrompt incorrectly such that it will do nothing because it calls 'new DisableMediaInsertionPrompt()' instead of DisableMediaInsertionPrompt.Create().

I just happened to notice this while scrolling through the code. I don't know exactly in which situations the undesirable media prompt would occur and don't have a particular need for this to be fixed.

貢獻者指南