In .NET Framework, custom attributes are user defined attributes which enable providing metadata for application elements such as assemblies, classes and methods.
I have a controller which should only request authorization when loaded with specific parameters. Like when the parameter ID is 8 …
asp.net-mvc-3 authorization custom-attributesI have a custom Attribute called AuthoriseAttribute whose constructor looks like this: public AuthoriseAttribute(int userId) { .. blah } This is used …
c# custom-attributesI'd like to define custom attributes in Android fragment using XML (without using bundle additional parameters) like declare-styleable in custom …
android android-fragments custom-attributes fragmentThis seems like a simple question, but for some reason I can't find the answer anywhere. Basically, I'd like to …
c# .net custom-attributes named-parametersI'm trying to add a name attribute to the User model provided by Devise. I added a "name" column to …
ruby-on-rails attributes devise custom-attributesI have a requirement to log each method call in a WCF service, and any exceptions thrown. This has led …
c# wcf logging custom-attributes aopI am trying to add a custom data-required attribute to an asp Checkbox control, it works fine for all other …
asp.net custom-attributes htmlIs there an elegant way to get all the types in an assembly that have a custom attribute? So if …
c# reflection custom-attributesI'm trying to create a custom attribute called Tag for all editable elements. I added the following to attrs.xml &…
android custom-attributesI see that in one situation we can override OnActionExecuting or OnActionExecuted methods inheriting from ActionFilterAttribute class like this: public …
asp.net asp.net-mvc-3 filter attributes custom-attributes