<returns>
documentation tag
The <returns>
tag should be used in the comment for a method declaration to describe the return value.
Syntax
/// <returns>description</returns>
Parameters
description
A description of the return value.
Remarks
Compile with /doc
to process documentation comments to a file.
Example
// xml_returns_tag.cpp
// compile with: /LD /clr /doc
// post-build command: xdcmake xml_returns_tag.dll
/// Text for class MyClass.
public ref class MyClass {
public:
/// <returns>Returns zero.</returns>
int GetZero() { return 0; }
};
See also
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ