开发者

When to use SharePointPermissionAttribute

开发者 https://www.devze.com 2022-12-16 08:30 出处:网络
When do I actually need to decorate my methods with the SharePointPermission attribute? I\'ve come across开发者_如何转开发 some code samples that have them and some that don\'t.The reason for decorati

When do I actually need to decorate my methods with the SharePointPermission attribute? I've come across开发者_如何转开发 some code samples that have them and some that don't.


The reason for decorating your code with SharePointPermission is if you want to deploy your dll to bin (instead of GAC) and you're using a tool like WSPBuilder which looks for these CAS (Code Access Security) attributes and build the CAS policy entries in Manifest.xml based on these.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号