Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IBindingContainer.AddBinding(String, String) Method

Adds the SimpleExpressionBinding binding with a default binding direction of Bidirectional.

[Visual Basic]
Public Sub AddBinding( _
   ByVal sourceExpression As String, _
   ByVal targetExpression As String _
)
[C#]
IBinding AddBinding(
   string sourceExpression,
   string targetExpression
);

Parameters

sourceExpression
The source expression.
targetExpression
The target expression.

Return Value

Added SimpleExpressionBinding instance.

Remarks

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

See Also

IBindingContainer Interface | Spring.DataBinding Namespace | IBindingContainer.AddBinding Overload List