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.

贡献者指南