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

LocalBuilder.IsPinned 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 object referred to by the local variable is pinned in memory.

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

'Declaration
Public Overrides ReadOnly Property IsPinned As Boolean

Property Value

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

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

Windows Phone

Show:
© 2017 Microsoft