C++ Attributes: event_receiver

Specifies that the UDT is an event receiver

Syntax

[
    define_attribute = "event_receiver",
    argument_list = {
        "type",
        "layout_dependent"
    },
    required_attributes = "(coclass & type.com) | layout_dependent.false",
    check_argument ("type") = {
        "native",
        "com",
        "managed"
    },
    check_argument ("layout_dependent") = {
        "true",
        "false"
    },
    default_value ("type") = "native",
    default_value ("layout_dependent") = "false",
    help_string = "Specified that the UDT is an event receiver",
    usage = eClassUsage | eCoClassUsage | eStructUsage,
    group = eCompilerGroup,
    shipping = "true"
];