Description Attribute in Class Library (DLL) ?



How do you get the description to display in a calling application when you use a description attribute on your properties in a class library (DLL)?

I'm using the following code in my dll (class library)...
Imports System.ComponentModel

<Description("Operator Name Property."), Category("Action")> _

Public Property OperatorName() As String

Get

Try

Return m_OperatorName

Catch ex As Exception

ProcessException(ex)

Return Nothing

End Try

End Get

Set(ByVal value As String)

Try

m_OperatorName = value

Catch ex As Exception

ProcessException(ex)

End Try

End Set

End Property

is there another namespace to use or what is the story to get this to work?

JerryM


Relevant Pages

  • Re: Windows App... processing completes before form is painted on
    ... This will display the form. ... >> Dim iProgress As Integer ... >> Dim sArchiveFilePath As String ... >> Catch ex As Exception ...
    (microsoft.public.dotnet.general)
  • Re: Open a file in JApplet
    ... > display the string in the file. ... exception or error 'cannot' happen. ... Java console of your browser.. ...
    (comp.lang.java.programmer)
  • Re: How to detect what type a variable is?
    ... treat it as a string. ... This gives the potentially-surprising result of iterating over my_string and calling process_list_itemwith each character in the string, rather than raising some exception and calling process_string. ... Python does the right thing, but it can be confusing when the duck-typing syntax is identical for the two, despite a desire to treat them differently...perhaps a tree-like list of lists and strings such as HTML/XML structure. ...
    (comp.lang.python)
  • Exception
    ... I have a class with a function which returns a string. ... at the same time I might need to return an error code ... I need to access this code after calling the function. ... Maybe using exception some how? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: A Simple BMP Converter
    ... "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal ... Private Sub cmdSysInfo_Click ... Open Registry Key ... > color bar in the color display. ...
    (comp.lang.basic.visual.misc)