'Declaration Public Sub Bind( _ ByVal instance As Object, _ ByVal propertyValue As Object _ )
public void Bind( object instance, object propertyValue )
Exception | Description |
---|---|
System.ArgumentException | Thrown 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). |
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.
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