IsPinned Property
Collapse the table of content
Expand the table of content

LocalVariableInfo.IsPinned Property

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

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)

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.

NoteNote:

In Windows Phone, 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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft