IDReferencePropertyAttribute Class
.NET Framework 2.0
Defines an attribute applied to properties that contain ID references. This class cannot be inherited.
Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
'Declaration <AttributeUsageAttribute(AttributeTargets.Property)> _ Public NotInheritable Class IDReferencePropertyAttribute Inherits Attribute 'Usage Dim instance As IDReferencePropertyAttribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Property) */ public final class IDReferencePropertyAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Property) public final class IDReferencePropertyAttribute extends Attribute
Not applicable.
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.
' This class implements a custom data source control. Public Class SomeDataBoundControl Inherits DataBoundControl <IDReferencePropertyAttribute(GetType(DataSourceControl))> _ Public Shadows Property DataSourceID() As String Get Return MyBase.DataSourceID End Get Set MyBase.DataSourceID = value End Set End Property End Class 'SomeDataBoundControl
- AspNetHostingPermission for operating in a hosted environment. Demand value: LinkDemand; Permission value: Minimal.
Community Additions
ADD
Show: