Add a property (original) (raw)

Use the Add Property wizard to add a property to an interface in your project.

To add a property to your interface:

  1. From the Visual Studio main menu, select View > Class view. In the Class View pane, expand the project node to display the interface you want to add the property to.
    Note
    You can also add properties to dispinterfaces, which, unless the project is attributed, are nested within the library node.
  2. Right-click the name of interface.
  3. From the shortcut menu, select Add > Add Property.
  4. In the Add property wizard, provide the information to create the property.
  5. Select OK to add the property.

Add Property wizard

The following section describes the UI that you'll use to add a property:

Screenshot of Add property wizard with the method name field set to sample and the property type set to int a

See Also

Add IDL Property

Add IDL MFC Property