field_attributes

[ [ field-attribute-list ] ] type-specifier declarator-list;

field-attribute-list
Specifies zero or more field attributes that apply to the structure or union member, array, or function parameter. Valid field attributes include first_is, last_is, length_is, max_is, size_is; the usage attributes string, ignore, and context_handle; the pointer attribute ref, unique, or ptr; and the union attribute switch_type. Separate multiple field attributes with commas.
type-specifier
Specifies a base_type, struct, union, or enum type or type identifier. An optional storage specification can precede type-specifier.
declarator-list
Specifies one or more standard C declarators, such as identifiers, pointer declarators, and array declarators. Separate multiple declarators with commas.

Remarks

Field attributes are used in structure, union, array, and function-parameter declarators to define transmission characteristics of the declarator during a remote procedure call.

Field-attribute keywords include size_is, max_is, length_is, first_is, and last_is; the usage attributes string, ignore, and context_handle; the union switch switch_is;and the pointer attributes ref, unique, and ptr.

The field attributes size_is, max_is, length_is, first_is, and last_is specify the size or range of valid data for the declarator. These field attributes associate another parameter, structure member, union member, or constant expression with the declarator.

Field attributes that are parameters must associate with declarators that are parameters, while field attributes that are members of structures or unions must associate with declarators that are members of the same structure or union.

For information about the context in which field attributes appear, see arrays, struct, and union.

See Also

arrays, first_is, IDL, last_is, length_is, max_is, size_is