Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HttpRequestListBindingContainer.AddBinding(String, String, BindingDirection, IFormatter) Method

Adds the SimpleExpressionBinding binding.

[Visual Basic]
Public Overrides Overloads Sub AddBinding( _
   ByVal sourceExpression As String, _
   ByVal targetExpression As String, _
   ByVal direction As BindingDirection, _
   ByVal formatter As IFormatter _
) _
    Implements IBindingContainer.AddBinding
[C#]
public override IBinding AddBinding(
   string sourceExpression,
   string targetExpression,
   BindingDirection direction,
   IFormatter formatter
);

Parameters

sourceExpression
The source expression.
targetExpression
The target expression.
direction
Binding direction.
formatter
IFormatter to use for value formatting and parsing.

Return Value

Added SimpleExpressionBinding instance.

Implements

IBindingContainer.AddBinding

Remarks

This is a convinience method for adding SimpleExpressionBinding, one of the most often used binding types, to the bindings list.

See Also

HttpRequestListBindingContainer Class | Spring.DataBinding Namespace | HttpRequestListBindingContainer.AddBinding Overload List