GCHandle.IsAllocated Proprietà

Definizione

Ottiene un valore che indica se l'handle è allocato.

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

Valore della proprietà

true se l'handle è allocato. In caso contrario, false.

Commenti

Se Free() è stato chiamato in questo GCHandleoggetto o se non GCHandle viene inizializzato, l'handle non viene allocato e questa proprietà restituisce false.

Si applica a

Vedi anche