Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 1.18 KB

File metadata and controls

34 lines (29 loc) · 1.18 KB
title ByRef (Visual Basic)
ms.date 07/20/2015
ms.prod .net
ms.suite
ms.technology
devlang-visual-basic
ms.topic article
f1_keywords
vb.ByRef
ByRef
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

ByRef (Visual Basic)

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

See Also

Keywords
Passing Arguments by Value and by Reference