| title |
ByRef (Visual Basic) |
| ms.date |
07/20/2015 |
| ms.prod |
.net |
| ms.suite |
|
| ms.technology |
|
| ms.topic |
article |
| f1_keywords |
|
| helpviewer_keywords |
ByRef keyword [Visual Basic] |
ByRef keyword [Visual Basic], contexts |
|
| ms.assetid |
4692e032-46f3-4e41-b0fa-3004364d9138 |
| caps.latest.revision |
10 |
| author |
dotnet-bot |
| ms.author |
dotnetcontent |
Specifies that an argument is passed in such a way that the called procedure can change the value of a variable underlying the argument in the calling code.
Remarks
The ByRef modifier can be used in these contexts:
Declare Statement
Function Statement
Sub Statement
Keywords
Passing Arguments by Value and by Reference