Export (0) Print
Expand All

length_is

Specifies the number of array elements to be transmitted.

[ length_is(
   "expression"
) ]

expression

One or more C-language expressions. Empty argument slots are allowed.

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

See first_is for an example of how to specify a section of an array.

Attribute Context

Applies to

Field in struct or union, interface parameter, interface method

Repeatable

No

Required attributes

None

Invalid attributes

None

For more information, see Attribute Contexts.

Community Additions

ADD
Show:
© 2014 Microsoft