|
1 | | ---- |
2 | | -title: "last_is | Microsoft Docs" |
3 | | -ms.custom: "" |
4 | | -ms.date: "11/04/2016" |
5 | | -ms.technology: ["cpp-windows"] |
6 | | -ms.topic: "reference" |
7 | | -f1_keywords: ["vc-attr.last_is"] |
8 | | -dev_langs: ["C++"] |
9 | | -helpviewer_keywords: ["last_is attribute"] |
10 | | -ms.assetid: 9e045ac0-fa38-4249-af55-67bde5d0a58c |
11 | | -author: "mikeblome" |
12 | | -ms.author: "mblome" |
13 | | -ms.workload: ["cplusplus", "uwp"] |
14 | | ---- |
15 | | -# last_is |
16 | | -Specifies the index of the last array element to be transmitted. |
17 | | - |
18 | | -## Syntax |
19 | | - |
20 | | -``` |
21 | | - |
22 | | - [ last_is( |
23 | | - "expression" |
24 | | -) ] |
25 | | -``` |
26 | | - |
27 | | -#### Parameters |
28 | | - *expression* |
29 | | - One or more C-language expressions. Empty argument slots are allowed. |
30 | | - |
31 | | -## Remarks |
32 | | - The **last_is** C++ attribute has the same functionality as the [last_is](http://msdn.microsoft.com/library/windows/desktop/aa367066) MIDL attribute. |
33 | | - |
34 | | -## Example |
35 | | - See [first_is](../windows/first-is.md) for an example of how to specify a section of an array. |
36 | | - |
37 | | -## Requirements |
38 | | - |
39 | | -### Attribute Context |
40 | | - |
41 | | -||| |
42 | | -|-|-| |
43 | | -|**Applies to**|Field in `struct` or **union**, interface parameter, interface method| |
44 | | -|**Repeatable**|No| |
45 | | -|**Required attributes**|None| |
46 | | -|**Invalid attributes**|None| |
47 | | - |
48 | | - For more information, see [Attribute Contexts](../windows/attribute-contexts.md). |
49 | | - |
50 | | -## See Also |
51 | | - [IDL Attributes](../windows/idl-attributes.md) |
52 | | - [Typedef, Enum, Union, and Struct Attributes](../windows/typedef-enum-union-and-struct-attributes.md) |
53 | | - [Parameter Attributes](../windows/parameter-attributes.md) |
54 | | - [first_is](../windows/first-is.md) |
55 | | - [max_is](../windows/max-is.md) |
56 | | - [length_is](../windows/length-is.md) |
57 | | - [size_is](../windows/size-is.md) |
| 1 | +--- |
| 2 | +title: "last_is | Microsoft Docs" |
| 3 | +ms.custom: "" |
| 4 | +ms.date: "11/04/2016" |
| 5 | +ms.technology: ["cpp-windows"] |
| 6 | +ms.topic: "reference" |
| 7 | +f1_keywords: ["vc-attr.last_is"] |
| 8 | +dev_langs: ["C++"] |
| 9 | +helpviewer_keywords: ["last_is attribute"] |
| 10 | +ms.assetid: 9e045ac0-fa38-4249-af55-67bde5d0a58c |
| 11 | +author: "mikeblome" |
| 12 | +ms.author: "mblome" |
| 13 | +ms.workload: ["cplusplus", "uwp"] |
| 14 | +--- |
| 15 | +# last_is |
| 16 | +Specifies the index of the last array element to be transmitted. |
| 17 | + |
| 18 | +## Syntax |
| 19 | + |
| 20 | +``` |
| 21 | +[ last_is( |
| 22 | + "expression" |
| 23 | +) ] |
| 24 | +``` |
| 25 | + |
| 26 | +### Parameters |
| 27 | + *expression* |
| 28 | + One or more C-language expressions. Empty argument slots are allowed. |
| 29 | + |
| 30 | +## Remarks |
| 31 | + The **last_is** C++ attribute has the same functionality as the [last_is](http://msdn.microsoft.com/library/windows/desktop/aa367066) MIDL attribute. |
| 32 | + |
| 33 | +## Example |
| 34 | + See [first_is](../windows/first-is.md) for an example of how to specify a section of an array. |
| 35 | + |
| 36 | +## Requirements |
| 37 | + |
| 38 | +### Attribute Context |
| 39 | + |
| 40 | +||| |
| 41 | +|-|-| |
| 42 | +|**Applies to**|Field in **struct** or **union**, interface parameter, interface method| |
| 43 | +|**Repeatable**|No| |
| 44 | +|**Required attributes**|None| |
| 45 | +|**Invalid attributes**|None| |
| 46 | + |
| 47 | + For more information, see [Attribute Contexts](../windows/attribute-contexts.md). |
| 48 | + |
| 49 | +## See Also |
| 50 | + [IDL Attributes](../windows/idl-attributes.md) |
| 51 | + [Typedef, Enum, Union, and Struct Attributes](../windows/typedef-enum-union-and-struct-attributes.md) |
| 52 | + [Parameter Attributes](../windows/parameter-attributes.md) |
| 53 | + [first_is](../windows/first-is.md) |
| 54 | + [max_is](../windows/max-is.md) |
| 55 | + [length_is](../windows/length-is.md) |
| 56 | + [size_is](../windows/size-is.md) |
0 commit comments