Incorrect help topics for CodeModel.AddFunction and CodeModel.AddVariable in Visual Studio .NET (814723)



The information in this article applies to:

  • Microsoft Developer Network (MSDN)
  • Microsoft .NET Framework 1.1
  • Microsoft .NET Framework 1.0
  • Microsoft Visual Basic .NET (2003)
  • Microsoft Visual Basic .NET (2002)
  • Microsoft Visual C# .NET (2003)
  • Microsoft Visual C# .NET (2002)

SUMMARY

In the Microsoft Visual Studio .NET Documentation, the help topics for the following methods describe these methods incorrectly:
  • CodeModel.AddFunction
  • CodeModel.AddVariable
For more information, visit the following Microsoft Web sites:

AddFunction Method [Variation 1] (General Extensibility)
http://msdn.microsoft.com/library/en-us/vsintro7/html/vxlrfaddfunctionmethod.asp

MORE INFORMATION

  • The CodeModel.AddFunction signature is incorrectly documented as the following:

    Visual Basic .NET
    Public Function AddFunction( _
       Name As String, _
       Kind As vsCMFunction, _
       Type As Variant, _
       Position As Variant, _
       Optional Access As vsCMAccess = vsCMAccessDefault, _
       Optional Location As Variant _
    ) As CodeFunction
    Visual C# .NET
    CodeFunction AddFunction(
       string Name,
       vsCMFunction Kind,
       object Type,
       object Position,
       vsCMAccess Access,
       object Location
    );

    The signature should read as follows:

    Visual Basic .NET
    Public Function AddFunction( _
       Name As String, _
       Location As Variant, _
       Kind As vsCMFunction, _
       Type As Variant, _
       Position As Variant, _
       Optional Access As vsCMAccess = vsCMAccessDefault _
    ) As CodeFunction
    Visual C# .NET
    CodeFunction AddFunction(
       string Name,
       object Location,
       vsCMFunction Kind,
       object Type,
       object Position,
       vsCMAccess Access
    );
  • The CodeModel.AddVariable signature is incorrectly documented as the following:

    Visual Basic .NET
    Public Function AddVariable( _
       Name As String, _
       Type As Variant, _
       Position As Variant, _
       Optional Access As vsCMAccess = vsCMAccessDefault, _
       Optional Location As Variant _
    ) As CodeVariable
    Visual C# .NET
    CodeVariable AddVariable(
       string Name,
       object Type,
       object Position,
       vsCMAccess Access,
       object Location
    );
    The signature should read as follows:

    Visual Basic .NET
    Public Function AddVariable( _
       Name As String, _
       Location As Variant, _
       Type As Variant, _
       Position As Variant, _
       Optional Access As vsCMAccess = vsCMAccessDefault _
    ) As CodeVariable
    Visual C# .NET
    CodeVariable AddVariable(
       string Name,
       object Location,
       object Type,
       object Position,
       vsCMAccess Access
    );
Note The Location parameter in both the methods is not optional; it is mandatory.

REFERENCES

For more information, visit the following Microsoft Web site:

Modification Type:MinorLast Reviewed:2/11/2006
Keywords:kbvs2005swept kbvs2005doesnotapply kbDocs kbhelp kbenv kbAutomation kbdocfix kbdocerr KB814723 kbAudDeveloper