Attributes question

  • Thread starter Thread starter Esha
  • Start date Start date
E

Esha

I'm learning Attribute stuff by reading MSDN topics. I'm creating a new
Property for Custom Control. I'm trying to add an Attribute to the Property
this way:
<Category("Alignment"), Description("Specifies the alignment of text.")> _

Public Property MyProperty() As String

I copied the Attribute line from MSDN topic.

VS highlights Category and Description and says "Type 'Category' is not
defined". The same for Description.

I tried to add

Imports System

Imports System.Attribute

No success.

What am I missing?

What should I add and where in order to make the Attribute line work?

Thank you
 
Back
Top