GCHandle.IsAllocated Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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.