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() elle a été appelée sur ce GCHandleparamètre ou si elle GCHandle n’est pas initialisée, le handle n’est pas alloué et cette propriété retourne false.

S’applique à

Voir aussi