Last post Mar 15, 2015 11:22 PM by Archer Wang
Mar 13, 2015 12:37 PM|CsharpAsp.net|LINK
In my webservice I have different webmethods. To each method I want to apply a custom permission attribute something like this:
public string MyWebMethod1()
public string MyWebMethod2()
I have a function which lists the permissions allowed for a method.
- How can I create the above custom permission
- How can I check for the allowed permission for this method by checking the permission attribute defined at the top of webmethod
Mar 15, 2015 11:22 PM|Archer Wang|LINK
According to your requirement, I suggest that you could refer to the below article.
It also has provided an example for you to refer. About custom attribute, I think it is similar as custom control 's custom property.
Hope this is useful to you.