NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ControlBindingsCollection.Add (String, Object, String)

Creates the binding and adds it to the collection. An InvalidBindingException is thrown if this binding can't be constructed. An exception is thrown if a binding to the same target and Property as an existing binding or if the binding's column isn't a valid column given this DataSource.Table's schema. Fires the CollectionChangedEvent.

[Visual Basic]
Overloads Public Function Add( _
   ByVal propertyName As String, _
   ByVal dataSource As Object, _
   ByVal dataMember As String _
) As ListBinding
[C#]
public ListBinding Add(
   string propertyName,
   object dataSource,
   string dataMember
);
[C++]
public: ListBinding* Add(
   String* propertyName,
   Object* dataSource,
   String* dataMember
);
[JScript]
public function Add(
   propertyName : String,
   dataSource : Object,
   dataMember : String
) : ListBinding;

Parameters

propertyName
The property to bind.
dataSource
The source to bind to.
dataMember
The field of the source to bind to.

Return Value

the created binding.

See Also

ControlBindingsCollection Class | ControlBindingsCollection Members | System.WinForms Namespace | ControlBindingsCollection.Add Overload List