Official Name of extended property attributes?

  • Thread starter Thread starter Raterus
  • Start date Start date
R

Raterus

Hi,

This is easy, I'm using some "extended attributes" to my classes/properties more and more these days, you know, when you have type that stuff before the definition of your class.

<XmlRoot(ElementName:="something")> _
Public Class MyClass

End Class

or sometimes I've had to do this...
<Serializable()> _
Public Class AnotherClass

End Class

My question is, what is the official term for these attributes( everything between < and >), I'd like to do more research on these as I've never found a good explanation how to use them. Just stumbled across them and know they work...

Thanks,
--Michael
 
They're called simply "Attributes". In fact, using the example you
gave, the XmlRoot attribute is actually a class called
XmlRootAttribute.

If you look up attributes, you should find the info you need.

Chris
 
Thanks, that's sure easy enough! I was able to find some info on them now.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top