Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ファイルを読み取り専用に設定するにはどうすればよいですか?
C# で WPF を使用しています。
使用できます:
File.SetAttributes("pathToTheFile", FileAttributes.ReadOnly);
msdn のその他の例:
https://msdn.microsoft.com/en-us/library/system.io.file.setattributes(v=vs.110).aspx