| title |
size_is | Microsoft Docs |
| ms.custom |
|
| ms.date |
11/04/2016 |
| ms.reviewer |
|
| ms.suite |
|
| ms.technology |
|
| ms.tgt_pltfrm |
|
| ms.topic |
language-reference |
| f1_keywords |
|
| dev_langs |
|
| helpviewer_keywords |
|
| ms.assetid |
70192d09-f6c5-4d52-b3fe-303f8cb10aa5 |
| caps.latest.revision |
9 |
| author |
mikeblome |
| ms.author |
mblome |
| manager |
ghogen |
| translation.priority.ht |
cs-cz |
de-de |
es-es |
fr-fr |
it-it |
ja-jp |
ko-kr |
pl-pl |
pt-br |
ru-ru |
tr-tr |
zh-cn |
zh-tw |
|
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.
Remarks
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.
|
|
| 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