Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ConstructorArgumentValues.GetArgumentValue(Int32, String, Type, ISet) Method

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

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


The index of the argument in the constructor argument list. May be negative, to denote the fact that we are not looking for an argument by index (see NoIndex.
The name of the argument in the constructor argument list. May be a null reference (Nothing in Visual Basic).
The Type to match.
A ISet of ConstructorArgumentValues.ValueHolder objects that have already been used in the current resolution process and should therefore not be returned again; this allows one to return the next generic argument match in the case of multiple generic argument values of the same type.

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