Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

<returns> (Visual C++)

The <returns> tag should be used in the comment for a method declaration to describe the return value.


A description of the return value.

Compile with /doc to process documentation comments to a file.

// 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 {
   /// <returns>Returns zero.</returns>
   int GetZero() { return 0; }
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.