dotnet/runtime

Incorrect use of DisableMediaInsertionPrompt

開放

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

 (7 則留言) (0 個反應) (0 位負責人)C# (5,445 個分叉)batch import
area-System.IOhelp wanted

倉庫指標

星標
 (17,886 顆星)
PR 合併指標
 (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.

貢獻者指南