속성 또는 함수의 반환 값을 지정합니다.
문법
<returns>description</returns>
매개 변수
description
반환 값에 대한 설명입니다.
비고
<returns> 메서드 선언에 대한 주석의 태그를 사용하여 반환 값을 설명합니다.
-doc를 사용하여 컴파일하여 파일에 대한 설명서 주석을 처리합니다.
예시
이 예제에서는 태그를 <returns> 사용하여 함수가 반환하는 DoesRecordExist 내용을 설명합니다.
''' <param name="id">The ID of the record to update.</param>
''' <remarks>Updates the record <paramref name="id"/>.
''' <para>Use <see cref="DoesRecordExist"/> to verify that
''' the record exists before calling this method.</para>
''' </remarks>
Public Sub UpdateRecord(ByVal id As Integer)
' Code goes here.
End Sub
''' <param name="id">The ID of the record to check.</param>
''' <returns><c>True</c> if <paramref name="id"/> exists,
''' <c>False</c> otherwise.</returns>
''' <remarks><seealso cref="UpdateRecord"/></remarks>
Public Function DoesRecordExist(ByVal id As Integer) As Boolean
' Code goes here.
End Function
참고하십시오
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET