Version

Bind Method

Binds a fetched data value to a public property on a data object.
Syntax
'Declaration
 
Public Sub Bind( _
   ByVal instance As Object, _
   ByVal propertyValue As Object _
) 
public void Bind( 
   object instance,
   object propertyValue
)

Parameters

instance
An instance of a data object undergoing initialization through data binding.
propertyValue
A property value fetched from the data source that will be assigned to PropertyName on instance.
Exceptions
ExceptionDescription
System.ArgumentExceptionThrown when the ScheduleDataBindingAttribute failed to successfully initialize. This is caused by a conflict between the ModelType and PropertyName (i.e., the instance type identified by ModelType and that was passed as a Type in the attribute declaration on the attribute's target, does not contain a property named PropertyName).
Remarks

At run-time, the data binding infrastructure will enumerate bindable properties marked by this custom attribute, and use the Bind method of this custom attribute to update an uninitialized instance of a bound data object.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also