Share via


IDL Attributes, Add Property Wizard

Use this page of the Add Property Wizard to specify any interface definition language (IDL) settings for the property.

  • id
    Sets the numerical ID that identifies the property. This option is not available for properties of custom interfaces. See id in the MIDL Reference.

  • helpcontext
    Specifies a context ID that lets the user view information about this property in the Help file. See helpcontext in the MIDL Reference.

  • helpstring
    Specifies a character string that is used to describe the element to which it applies. By default, it is set to "property Property name." See helpstring in the MIDL Reference.

Other options

Not all options are available to all property types.

Option

Description

bindable

Indicates that the property supports data binding. See bindable in the MIDL Reference. For the stock implementation of the property, this option is set by default and is unchangeable.

defaultbind

Indicates that this the single, bindable property best represents the object. See defaultbind in the MIDL Reference.

displaybind

Indicates that this property should be displayed to the user as bindable. See displaybind in the MIDL Reference.

immediatebind

Indicates that the database will be notified immediately of all changes to this property of a data-bound object. See immediatebind in the MIDL Reference.

defaultcollelem

Indicates that the property is an accessor function for an element of the default collection. See defaultcollelem in the MIDL Reference.

nonbrowsable

Tags an interface or dispinterface member that should not be displayed in a properties browser. See nonbrowsable in the MIDL Reference.

requestedit

Indicates that the property supports the OnRequestEdit notification See requestedit in the MIDL Reference. For the stock implementation of the property, this option is set by default and is unchangeable.

source

Indicates that a member of the property is a source of events. See source in the MIDL Reference.

hidden

Indicates that the property exists but should not be displayed in a user-oriented browser. See hidden in the MIDL Reference.

restricted

Specifies that the property cannot be called arbitrarily. See restricted in the MIDL Reference.

local

Specifies to the MIDL compiler that the property is not remote. See local in the MIDL Reference.

See Also

Tasks

Adding a Property

Implementing an Interface

Reference

Names, Add Property Wizard

Stock Properties