Microsoft Knowledge Base Email Alertz

(814723) - 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...

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 814723 - Last Review: May 11, 2007 - Revision: 1.4

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

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://msdn2.microsoft.com/en-us/library/aa293130(VS.71).aspx (http://msdn2.microsoft.com/en-us/library/aa293130(VS.71).aspx)
AddVariable Method [Variation 2] (General Extensibility)
http://msdn2.microsoft.com/en-us/library/aa293157(VS.71).aspx (http://msdn2.microsoft.com/en-us/library/aa293157(VS.71).aspx)

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:
http://msdn2.microsoft.com/en-us/library/aa300747(VS.71).aspx (http://msdn2.microsoft.com/en-us/library/aa300747(VS.71).aspx)

APPLIES TO
  • MSDN 2003 Universal Edition
  • Microsoft .NET Framework 1.1
  • Microsoft .NET Framework 1.0
  • Microsoft Visual Basic .NET 2003 Standard Edition
  • Microsoft Visual Basic .NET 2002 Standard Edition
  • Microsoft Visual C# .NET 2003 Standard Edition
  • Microsoft Visual C# .NET 2002 Standard Edition
Keywords: 
kbvs2005swept kbvs2005doesnotapply kbdocs kbhelp kbenv kbautomation kbdocfix kbdocerr KB814723
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate