<returns> ドキュメント タグ
<returns> タグは、戻り値を説明するためにメソッドの宣言のコメントで使用する必要があります。
構文
/// <returns>description</returns>
パラメーター
description
戻り値の説明。
Remarks
コンパイル時に /doc を指定して、ドキュメント コメントをファイルに出力します。
例
// 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; }
};