Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Properties
#2
I have some additional code for properties:

1] Create a description for the property

Code:
<System.ComponentModel.Description("your_description")>
You need to put this code above
Code:
Public Property YourProperty() As String
so it'll eventually look like this:

Code:
Public _YourProperty
    <System.ComponentModel.Description("your_description")>
    Public Property YourProperty() As String
        Get
            Return _YourProperty
        End Get
        Set(ByVal value As String)
            _YourProperty= value
        End Set
    End Property
If you click the property you will see a description your_description.

2] Define a category where the property has to be listed
If you don't define a category Visual Studio will create a new one that is called 'Misc'.

To add your property to a category or create a new one enter this following line
Code:
<Category("Data")>
above the
Code:
Public Property YourPropery() As String
Your property will now be displayed in the category Data.


Messages In This Thread
Properties - by brandonio21_phpbb3_import2 - 04-11-2013, 05:20 PM
Re: Properties - by brco900033 - 04-27-2013, 05:19 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)