Type.IsMarshalByRef Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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


Public ReadOnly Property IsMarshalByRef As Boolean
public bool IsMarshalByRef { get; }

Property Value

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


The following example demonstrates the IsContextful, IsMarshalByRef, and IsPrimitive properties of the Type class. It checks whether the given type can be hosted in the context, whether it can be marshaled by reference, and whether the type is a primitive data type.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

See Also


Type Class

System Namespace