IDReferencePropertyAttribute Constructor ()
.NET Framework (current version)
Initializes a new instance of the IDReferencePropertyAttribute class.
Assembly: System.Web (in System.Web.dll)
When you call this constructor, the ReferencedControlType property is set to Control, which is its default value.
The following code example demonstrates how the IDReferencePropertyAttribute attribute is applied to a property that evaluates to a string. In this example, the DataSourceID member identifies a data source control at run time. By using the default constructor, the ReferencedControlType property is set to the default value, Control.
.NET Framework
Available since 2.0
Available since 2.0
Show: