This documentation is archived and is not being maintained.

Type.IsByRef Property

Gets a value indicating whether the Type is passed by reference.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

abstract IsByRef : bool
override IsByRef : bool

Property Value

Type: System.Boolean
true if the Type is passed by reference; otherwise, false.



To get to the actual type, dereference the type that was passed by reference, and then call GetElementType on that type.

The following example demonstrates a use of the IsByRef property to check whether a specified type is passed by reference. The example defines the class MyTypeDelegator, which overrides the HasElementTypeImpl method. The main class checks for the HasElementType property and displays the element type.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.