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.
Assembly: mscorlib (in mscorlib.dll)
Property Value
Type: System.Booleantrue if the object referred to by the variable is pinned in memory; otherwise, false.
Note: |
|---|
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.
Note: