--- title: "<returns> (Visual C++) | Microsoft Docs" ms.custom: "" ms.date: "11/04/2016" ms.reviewer: "" ms.suite: "" ms.technology: - "cpp-ide" ms.tgt_pltfrm: "" ms.topic: "article" f1_keywords: - "returns" - "" dev_langs: - "C++" helpviewer_keywords: - "returns C++ XML tag" - " C++ XML tag" ms.assetid: 5e3b0ed9-838d-4953-a93e-76d2d0a19fb9 caps.latest.revision: 8 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" --- # <returns> (Visual C++) The \ tag should be used in the comment for a method declaration to describe the return value. ## Syntax ``` description ``` #### Parameters `description` A description of the return value. ## Remarks Compile with [/doc](../build/reference/doc-process-documentation-comments-c-cpp.md) 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 zero. int GetZero() { return 0; } }; ``` ## See Also [XML Documentation](../ide/xml-documentation-visual-cpp.md)