GetDefinition is used to retrieve the definition of content type (and not the definition of variable type).

Example:

If two classes "DerivedClasse" and "BaseClass" derive from each other. If the instances of "DerivedClass" and "BaseClass" are handled by a "dynamic BaseClass" variable, GetDefinition returns the definition of real class of instance.

po is dynamicBaseClassd is Definition

po = new BaseClassd = GetDefinition(po)Trace(d..Name)

po = new DerivedClassd = GetDefinition(po)Trace(d..Name)

If the type of the element is not supported, GetDefinition returns a Null definition associated with the non-fatal error "invalid definition".

If the element is not allocated, GetDefinition returns a Null definition associated with the non-fatal error "element not allocated".