Microsoft KB Archive/317943

= FIX: Class members incorrectly documented with class-level attributes =

Article ID: 317943

Article Last Modified on 1/19/2006

-

APPLIES TO


 * Microsoft Visual Studio .NET 2002 Professional Edition
 * Microsoft Visual Studio .NET 2002 Enterprise Architect
 * Microsoft Visual Studio .NET 2002 Enterprise Developer
 * 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).



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

System.AppDomain

  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  Click AppDomain Members.  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 ); 

Keywords: kbtshoot kbbug kbfix kbvs2002sp1sweep kbvs2005swept kbvs2005doesnotapply KB317943

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.