| title |
retval | 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 |
bfa16f08-157d-4eea-afde-1232c54b8501 |
| 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 |
|
Designates the parameter that receives the return value of the member.
Remarks
The retval C++ attribute has the same functionality as the retval MIDL attribute.
retval must appear on the last argument in a function's declaration.
See the example for bindable for a sample use of retval.
|
|
| Applies to |
Interface parameter, interface method |
| Repeatable |
No |
| Required attributes |
out |
| Invalid attributes |
in |
For more information about the attribute contexts, see Attribute Contexts.
IDL Attributes
Parameter Attributes
Method Attributes