简体   繁体   中英

Is System.Security.CodeAccessPermission obsolete in .NET Core 3.1 / .NET 5.0?

I know that CAS is obsolete in .NET Core 3.1 / .NET 5.0 .

Is System.Security.CodeAccessPermission also obsolete? I was unable to find any reliable information about it on Internet. The documentation don't say anything about it, and just a few methods - like the Deny() method - are marked as obsolete on the docs .

Assuming that they are all obsolete - and that's why I couldn't find any current articles or books about it, - what should I use instead? Can you please point me to some docs or books that discuss the current state of code access security on .NET Framework 4.8 / Core 3.1 / 5.0? I couldn't find any!

Thanks!

Copied from the comment.

There can be significant delay between code change and documentation update. So we should focus on the code first, which is available on GitHub . From there we can see this type only becomes obsolete in .NET 5.

To migrate away from obsolete types, you can follow the guide .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM