Open skycommand opened 1 year ago
Tagging subscribers to this area: @dotnet/area-system-security, @vcsjones See info in area-owners.md if you want to be subscribed.
Author: | skycommand |
---|---|
Assignees: | - |
Labels: | `area-System.Security`, `untriaged`, `Pri3` |
Milestone: | - |
The example needs to be updated to use FileSystemAclExtensions.
Instead of File.GetAccessControl(fileName)
, we need new FileInfo(fileName).GetAccessControl()
.
Although the existing example may still have value for .NET framework users. @gewarren is there a way to make tfm-specific examples?
@gewarren is there a way to make tfm-specific examples?
@Jozkee Yes you can have have more than one example and just annotate them with the versions they apply to.
Hello
I'm reporting a faulty example code in the FileSystemSecurity Class page for .NET 7.0 (and potentially other versions). The associated source page is FileSystemSecurity.xml
The code doesn't compile (generating four CS0117 errors) because it calls two non-existent methods:
File.GetAccessControl()
andFile.SetAccessControl()
.Please advise.