We recommend using Visual Studio 2017

max_is

 

The latest version of this topic can be found at max_is.

Designates the maximum value for a valid array index.

  
      [ max_is(  
   "expression"  
) ]  

Parameters

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

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

Attribute Context

Applies toField in struct or union, interface parameter, interface method
RepeatableNo
Required attributesNone
Invalid attributessize_is

For more information, see Attribute Contexts.

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

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

Show: