Поделиться через


id

Specifies a dispid parameter for a member function (either a property or a method, in an interface or dispinterface).

[ id(
      dispid
) ]

Параметры

  • dispid
    The dispatch ID for the interface method.

Заметки

The id C++ attribute has the same functionality as the id MIDL attribute.

Пример

See the example for bindable for an example of how to use id.

Требования

Attribute Context

Applies to

Interface method

Repeatable

No

Required attributes

None

Invalid attributes

None

For more information, see Attribute Contexts.

См. также

Основные понятия

IDL Attributes

Method Attributes

Data Member Attributes

defaultvalue

in (C++)

out (C++)

ATL Samples