Skip to content

Latest commit

 

History

History
79 lines (68 loc) · 1.91 KB

File metadata and controls

79 lines (68 loc) · 1.91 KB
title length_is | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic language-reference
f1_keywords
vc-attr.length_is
dev_langs
C++
helpviewer_keywords
length_is attribute
ms.assetid 1d99b883-84bb-4b1e-b098-eb780fc94f40
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

length_is

Specifies the number of array elements to be transmitted.

Syntax

  
      [ length_is(  
   "expression"  
) ]  

Parameters

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

Remarks

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

Example

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

Requirements

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.

See Also

IDL Attributes
Typedef, Enum, Union, and Struct Attributes
Parameter Attributes
first_is
max_is
last_is
size_is