ByRef (coredll)
Last changed: anonymous

ByRef is a VB keyword that specifies a variable to be passed as a parameter BY REFERENCE. In other words, the pointer to the variable is passed and any change to its value made within the function or sub will change its value outside the function/sub.

C# Signature:

[DllImport("coredll.dll", SetLastError=true)]
static extern TODO ByRef(TODO);

VB Signature:

Declare Function ByRef Lib "coredll.dll" (TODO) As TODO

User-Defined Types:


Alternative Managed API:

Do you know one? Please contribute it!


To pass a variable by value (i.e. any change made to the variable's value within the function/sub will not affect it outside the function/sub.) use ByVal.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

ByRef on MSDN