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


pointer_default

Specifies the default pointer attribute for all pointers, except top-level pointers that appear in parameter lists.

[ pointer_default(
      value
) ]

Параметры

  • value
    A value that describes the pointer type: ptr, ref, or unique.

Заметки

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

Пример

See the example for defaultvalue for a sample use of pointer_default.

Требования

Attribute Context

Applies to

interface

Repeatable

No

Required attributes

None

Invalid attributes

None

For more information about the attribute contexts, see Attribute Contexts.

См. также

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

IDL Attributes

Interface Attributes

ATL Samples