Assembly: System.Web (in system.web.dll)
[AttributeUsageAttribute(AttributeTargets.Property)] public sealed class IDReferencePropertyAttribute : Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Property) */ public final class IDReferencePropertyAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Property) public final class IDReferencePropertyAttribute extends Attribute
The IDReferencePropertyAttribute class is applied to properties that contain ID references. ContentPlaceHolderID is an example of a property that contains an ID reference. When this attribute is applied, designers can provide additional functionality during design time, such as listing IDs.
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 and therefore specifies the DataSourceControl type.