<returns>
檔標籤
<returns>
標記應該用於方法宣告的註解中,以描述傳回值。
語法
/// <returns>description</returns>
參數
description
傳回值的描述。
備註
使用 /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; }
};