Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractObjectFactory.GetType(String) Method

Determines the Type of the object with the supplied name.

[Visual Basic]
Public Overridable Overloads Sub GetType( _
   ByVal name As String _
) _
    Implements IObjectFactory.GetType
public virtual Type GetType(
   string name


The name of the object to query.

Return Value

The Type of the object or a null reference (Nothing in Visual Basic) if not determinable.




More specifically, checks the Type of object that GetObject would return. For an IFactoryObject, returns the Type of object that the IFactoryObject creates.

Please note that (prototype) objects created via a factory method or IFactoryObject objects are handled slightly differently, in that we don't want to needlessly create instances of such objects just to determine the Type of object that they create.

See Also

AbstractObjectFactory Class | Spring.Objects.Factory.Support Namespace | AbstractObjectFactory.GetType Overload List