System::Object::Is method

Object::Is method

Verifica se l’oggetto rappresenta un’istanza del tipo descritto da targetType. Analogo dell’operatore C# ‘is’.

virtual bool System::Object::Is(const TypeInfo &targetType) const
ParametroTipoDescrizione
targetTypeconst TypeInfo&Struttura TypeInfo che descrive il tipo contro cui testare l’oggetto corrente.

ReturnValue

Vero se l’oggetto è di tipo etichettato o della sua sottoclasse, falso altrimenti.

Vedi anche