You receive error messages when you try to inherit from a class that contains only private constructors in Visual Studio .NET or in Visual Studio 2005 (833898)
The information in this article applies to:
- Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2003), Academic Edition
- 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
- Microsoft Visual C# .NET (2003)
- Microsoft Visual C# .NET (2002)
- Microsoft Visual Basic .NET (2003)
- Microsoft Visual Basic .NET (2002)
- Microsoft .NET Framework 1.1
- Microsoft .NET Framework 1.0
- Microsoft .NET Framework 2.0
- Microsoft Visual Studio 2005 Professional Edition
- Microsoft Visual Studio 2005 Standard Edition
SYMPTOMSIf you try to inherit from a class that
contains only private constructors, you receive many error
messages. This
problem may occur in many different scenarios.CAUSEYou receive these error messages because you
cannot inherit from a class than contains only private constructors. RESOLUTION To resolve this problem, do not try to inherit from a class that contains only private constructors. For more information, see the "References" section of this article.REFERENCESFor more information, visit the following Microsoft
Developer Network (MSDN) Web sites:
Modification Type: | Major | Last Reviewed: | 2/10/2006 |
---|
Keywords: | kbvs2005swept kbvs2005applies kbprb kbSample kberrmsg kbcode KB833898 kbAudDeveloper |
---|
|