<returns> (Visual Basic)
プロパティまたは関数の戻り値を指定します。
構文
<returns>description</returns>
パラメーター
description
戻り値の説明。
Remarks
メソッド宣言のコメントで <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 にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET