vb.net - What are the non-custom attributes for properties, functions, etc? -


i've been looking around web , found lots of info on vb.net attributes in general , creating , using custom attributes, 10 or generic, non-custom attributes listed on msdn.

however have not been able find info/ listing on non-custom attributes available use things. property can have <editorbrowsable(editorbrowsablestate.always), description("my properties description")>

how can find out non-custom attributes available use things (such functions, properties, classes, etc)?

perhaps, "non-custom" wrong term. think asking list of attributes included part of .net framework. list, of course, depend on version of framework targeting , specific framework libraries choose reference in project, msdn provides pretty comprehensive list of them here.

as far determining attributes can applied types of elements (e.g. class, property, method, assembly), if click on of links view msdn page of attribute classes, you'll notice in syntax section of page shows declaration of class. above class declaration, see attributeusage attribute applied attribute class. that's right--attributes can, themselves, have attributes too--stick me.

the first argument attributeusage attribute called validon. attributetargets enumeration defines types of elements attribute can applied. instance, if attributeusage attribute on attribute class looks <attributeusage(attributetargets.all)>, means can applied anything. if looks <attributeusage(attributetargets.class)>, means can applied class.


Comments