Click to Rate and Give Feedback

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual C++ Concepts: Creating and Managing Projects
Adding a Method

You can use the Add Method Wizard to add a method to an interface in your project. If the project contains a class associated with the interface, the wizard modifies the class, too.

To add a method to your object

  1. In Class View, expand the project node to display the interface to which you want to add the method.

    61k78y09.alert_note(en-us,VS.90).gifNote:

    You can also add methods to dispinterfaces, which, unless the project is attributed, are located under the library node.

  2. Right-click the name of the interface.

  3. On the shortcut menu, click Add, and then click Add Method.

  4. In the Add Method Wizard, provide the information to create the method.

  5. Specify any interface definition language settings for this method in the IDL attributes page of the wizard.

  6. Click Finish to add the method.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker