Share via


GCHandle.IsAllocated Propriété

Définition

Obtient une valeur indiquant si le handle est alloué.

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

Valeur de propriété

true si le handle est alloué ; sinon false.

Remarques

Si Free() a été appelé sur ce GCHandle, ou si ce GCHandle n’est pas initialisé, le handle n’est pas alloué et cette propriété retourne false.

S’applique à

Voir aussi