FIX: Class members incorrectly documented with class-level attributes (317943)



The information in this article applies to:

  • Microsoft Visual Studio .NET (2002), Professional Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2002), Academic Edition

This article was previously published under Q317943

SYMPTOMS

Many of the .NET class members (properties, methods, constructors, and events) are incorrectly documented to have class-level attributes. For example, the ClassInterface attribute applies only to assemblies and classes; this attribute does not apply to individual class members. The documentation incorrectly shows the attribute for members of a class.

RESOLUTION

Fields and types are documented correctly. You can use this information to determine whether the attributes for a class member are correct.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in Visual Studio .NET (2003).

MORE INFORMATION

Steps to Reproduce the Behavior

To view the documentation that is not correct, follow these steps:
  1. Open Visual Studio .NET Help, and then open the topic for the AppDomain class, which is located at the following link.

  2. Note the ClassInterface attribute in the syntax for the class. This information (shown in the following example) is correct:
    [C#]
    [ClassInterface(ClassInterfaceType.None)]
    public sealed class AppDomain : MarshalByRefObject, _AppDomain,
       IEvidenceFactory
    					
  3. Click AppDomain Members.
  4. Open a topic for the AppendPrivatePath member. The syntax includes the ClassInterface attribute, which is incorrect, as shown in the following example:
    [C#] [ClassInterface(ClassInterfaceType.None)] public void AppendPrivatePath( string path );
    					

Modification Type:MinorLast Reviewed:1/19/2006
Keywords:kbvs2005doesnotapply kbvs2005swept kbtshoot kbvs2002sp1sweep kbfix kbbug KB317943 kbAudDeveloper