Breyta

Deila með


LocalVariableInfo.IsPinned Property

Definition

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

public:
 virtual property bool IsPinned { bool get(); };
public virtual bool IsPinned { get; }
member this.IsPinned : bool
Public Overridable ReadOnly Property IsPinned As Boolean

Property Value

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

Remarks

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.

Applies to