System.Web.UI.TemplateContainerAttribute Class

Declares the base type of the container control of a property that returns an System.Web.UI.ITemplate interface and is marked with the System.Web.UI.TemplateContainerAttribute attribute. The control with the System.Web.UI.ITemplate property must implement the System.Web.UI.INamingContainer interface. This class cannot be inherited.

See Also: TemplateContainerAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.Property)]
public sealed class TemplateContainerAttribute : Attribute

Remarks

The Type object that is passed in as a parameter of the System.Web.UI.TemplateContainerAttribute object is used by the parser as the type of System.ComponentModel.Container object that is used in data-binding expressions. The control whose property returns an System.Web.UI.ITemplate interface and is marked with the System.Web.UI.TemplateContainerAttribute, must implement the System.Web.UI.INamingContainer interface.

For more information about using attributes, see Extending Metadata Using Attributes.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0