Article ID: 907963 - Last Review: March 14, 2007 - Revision: 1.4 You cannot access fields for types that are defined in a partial class when you use the Visual Basic Code Model to extend Visual Studio 2005On This PageSYMPTOMSWhen you use the Visual Basic Code Model to extend Microsoft
Visual Studio 2005, you cannot access fields for types that are defined in a
partial class. This problem occurs when you use the CodeType member of the CodeTypeRef interface. CAUSEThis problem occurs because the CodeType member is set to null when the definition that the CodeType member references is not defined in the first segment of a
partial class that the Code Model parses. RESOLUTIONTo resolve this problem, use one of the following methods:
STATUSMicrosoft
has confirmed that this is a problem in the Microsoft products that are listed
in the "Applies to" section. MORE INFORMATIONSteps to reproduce the problem
http://msdn2.microsoft.com/en-us/library/0c5t3tay(en-US,VS.80).aspx
(http://msdn2.microsoft.com/en-us/library/0c5t3tay(en-US,VS.80).aspx)
For more information about Microsoft Visual Studio Team System,
visit the following MSDN Web site: http://msdn2.microsoft.com/en-us/teamsystem/default.aspx
(http://msdn2.microsoft.com/en-us/teamsystem/default.aspx)
For more information about unit testing, visit the following MSDN
Web site: http://msdn2.microsoft.com/en-us/library/ms364064(vs.80).aspx
(http://msdn2.microsoft.com/en-us/library/ms364064(vs.80).aspx)
| Article Translations
|
Back to the top
