Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ObjectNotOfRequiredTypeException Constructor

Creates a new instance of the ObjectNotOfRequiredTypeException class.

[Visual Basic]
Public Overloads Sub New( _
   ByVal name As String, _
   ByVal requiredType As Type, _
   ByVal actualInstance As Object _
)
[C#]
ObjectNotOfRequiredTypeException(
   string name,
   Type requiredType,
   object actualInstance
);

Parameters

name
Name of the object requested.
requiredType
The required Type of the actual object instance that was retrieved.
actualInstance
The instance actually returned, whose class did not match the expected Type.

See Also

ObjectNotOfRequiredTypeException Class | Spring.Objects.Factory Namespace | ObjectNotOfRequiredTypeException Constructor Overload List