Problem with DescriptionAttribute

  • Thread starter Thread starter Brad
  • Start date Start date
B

Brad

I've used the Description attribute throughout assembly classes; class;
methods; enums, etc. My problem is that the descriptions use to show up in
the object browser and now they don't. To confirm I tried a simple test
assem with same problem. So why & help!

Imports System.ComponentModel

<Description("Test component")> _
Public Class Class1
<Description("Test method1")> _
Public Sub Method1()
End Sub
End Class

Using .Net2003 & framework 1.1


Brad
 
* "Brad said:
I've used the Description attribute throughout assembly classes; class;
methods; enums, etc. My problem is that the descriptions use to show up in
the object browser and now they don't. To confirm I tried a simple test
assem with same problem. So why & help!

For VB.NET 2002/2003:

My XML Comments FAQ:

VB Commenter
<http://www.gotdotnet.com/team/ide/>
-> section "VB Commenter"

XML Documentation
<http://www.gotdotnet.com/team/vb/>
-> section "XML Documentation"

VBXC - VB.NET XML Commentor
<http://vbxmldoc.tor-erik.net/index.shtml>

NDOC (formerly DOC.NET)
<http://ndoc.sourceforge.net/>

VB.DOC
<http://vb-doc.sourceforge.net/>

<http://www.gotdotnet.com/Community/Workspaces/Workspace.aspx?id=112b5449-f702-46e2-87fa-86bdf39a17dd>
 
Thanks for the info on your add-ins. At this time I'm looking for an
explanation as to why the built in attribute is not working.

Brad
 
Hi Brad,

Here is what the MSDN said about DescriptionAttribute Class for
ComponentModel
Specifies a description for a PROPERTY or EVENT.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemComponentModelDescriptionAttributeClassTopic.asp

What you see in Object Browser is the summary XML Comments.
It is C#'s feature now.
C# Programmer's Reference
<summary>
<summary>description</summary>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/
vclrfsummary.asp

But Visual Basic .NET doesn't support XML Comments in the IDE currently,
but we will in the future. There is an add-in that you can use
today, check it out at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvssamp/ht
ml/vbcs_XMLComments.asp


Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top