Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ConstructorArgumentValues.GetArgumentValue(String, Type) Method

Look for an argument value that either corresponds to the given index in the constructor argument list or generically matches by Type.

[Visual Basic]
Public Overridable Overloads Sub GetArgumentValue( _
   ByVal name As String, _
   ByVal requiredType As Type _
public virtual ValueHolder GetArgumentValue(
   string name,
   Type requiredType


The name of the argument in the constructor argument list. May be a null reference (Nothing in Visual Basic), in which case generic matching by Type is assumed.
The Type to match.

Return Value

The ConstructorArgumentValues.ValueHolder for the argument, or a null reference (Nothing in Visual Basic) if none is set.

See Also

ConstructorArgumentValues Class | Spring.Objects.Factory.Config Namespace | ConstructorArgumentValues.GetArgumentValue Overload List