LocalVariableInfo.IsPinned Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets a Boolean value indicating whether the object referred to by the local variable is pinned in memory.

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

Syntax

'Declaration
Public Overridable ReadOnly Property IsPinned As Boolean
public virtual bool IsPinned { get; }

Property Value

Type: System.Boolean
true if the object referred to by the variable is pinned in memory; otherwise, false.

Remarks

NoteNote:

In Silverlight, LocalVariableInfo serves as the base class for LocalBuilder. It has no other use, because there is no way to create a LocalVariableInfo object.

In unsafe code, an object must be pinned before it can be referred to by an unmanaged pointer. While the referenced object is pinned, it cannot be moved by garbage collection.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.