This documentation is archived and is not being maintained.
DataBinding Constructor
Visual Studio 2010
Initializes a new instance of the DataBinding class.
Assembly: System.Web (in System.Web.dll)
Parameters
- propertyName
- Type: System::String
The property to bind data to.
- propertyType
- Type: System::Type
The .NET Framework type of the property to bind data to.
- expression
- Type: System::String
The data-binding expression to be evaluated.
The following code example creates a DataBinding object and sets it equal to an existing object in the control's DataBindingCollection collection that has a propertyName parameter with a value of Text. If the collection contains a DataBinding object with a propertyName value of Text, this code returns the value of the object's Expression property. If there is no such object, it returns an empty string ("").
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: