retval
Designates the parameter that receives the return value of the member.
Syntax
[retval]
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.
Example
See the example for bindable for a sample use of retval.
Requirements
Attribute context | Value |
---|---|
Applies to | Interface parameter, interface method |
Repeatable | No |
Required attributes | out |
Invalid attributes | in |
For more information about the attribute contexts, see Attribute Contexts.
See also
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ