description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|
Learn more about: size_is |
size_is (C++ COM Attribute) |
10/02/2018 |
|
|
70192d09-f6c5-4d52-b3fe-303f8cb10aa5 |
Specify the size of memory allocated for sized pointers, sized pointers to sized pointers, and single- or multidimensional arrays.
[ size_is("expression") ]
expression
The size of memory allocated for sized pointers.
The size_is C++ attribute has the same functionality as the size_is MIDL attribute.
See the example for first_is for a sample 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 | max_is |
For more information about the attribute contexts, see Attribute Contexts.
IDL Attributes
Typedef, Enum, Union, and Struct Attributes
Parameter Attributes
first_is
last_is
max_is
length_is