LocalBuilder.IsPinned Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value indicating whether the object referred to by the local variable is pinned in memory.
public:
virtual property bool IsPinned { bool get(); };
public override bool IsPinned { get; }
member this.IsPinned : bool
Public Overrides ReadOnly Property IsPinned As Boolean
Property Value
true
if the object referred to by the local 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
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.