Assigning Description Attributes to class methods

  • Thread starter Thread starter Sergey Poberezovskiy
  • Start date Start date
S

Sergey Poberezovskiy

Hi,

When I create a dll in VB6 I normally define description
to every method, so that it could be seen in the Object
Browser (by user/developer). I strongly beleive that this
is still possible to do in .Net - I just cannot seem to
find how...

Could someone please help?..
 
* "Sergey Poberezovskiy said:
When I create a dll in VB6 I normally define description
to every method, so that it could be seen in the Object
Browser (by user/developer). I strongly beleive that this
is still possible to do in .Net - I just cannot seem to
find how...

DescriptionAttribute Class (.NET Framework)
<http://msdn.microsoft.com/library/e...ponentModelDescriptionAttributeClassTopic.asp>

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
 
Herfield,

When I try to use something like the following (example
from the link you refer to):
<Description("")> Public Shared ReadOnly Property
ConnectionString() As String
...
End Property

I receive the error saying that "type 'Description' is not
defined.";
I have tried to use different attributes, like
System.IO.IODescriptionAttribute, or
System.ComponentModel.DescriptionAttribute - the compiler
does not complain, but those attributes do not show up in
the Object Browser when I reference the dll. And that is
my problem.

It may be working fine when you create a custome control -
I do not know as I have not tried, but I just need a code
library component.
 

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