| description | Learn more about: length_is | |
|---|---|---|
| title | length_is (C++ COM Attribute) | |
| ms.date | 10/02/2018 | |
| f1_keywords |
|
|
| helpviewer_keywords |
|
|
| ms.assetid | 1d99b883-84bb-4b1e-b098-eb780fc94f40 |
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 | Value |
|---|---|
| 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.
IDL Attributes
Typedef, Enum, Union, and Struct Attributes
Parameter Attributes
first_is
max_is
last_is
size_is