System.Web.UI.TemplateInstance Enumeration

Specifies how many times an instance of a template can be created.


public enum TemplateInstance


The System.Web.UI.TemplateInstance enumeration specifies values indicating the number of times an instance of a template can be created. The System.Web.UI.TemplateInstanceAttribute class uses values from the System.Web.UI.TemplateInstance enumeration. In particular, the TemplateInstanceAttribute.Single and TemplateInstanceAttribute.Multiple fields specify single and multiple instances of a template, respectively. A single instance of a template allows you to reference controls that are contained within the template.

Examples of controls that use the TemplateInstance.Single value in property metadata include the System.Web.UI.WebControls.WebParts.CatalogZone.ZoneTemplate property of the System.Web.UI.WebControls.WebParts.CatalogZone control, the System.Web.UI.WebControls.WebParts.EditorZone.ZoneTemplate property of the System.Web.UI.WebControls.WebParts.EditorZone control, and the System.Web.UI.WebControls.WebParts.WebPartZone.ZoneTemplate property of the System.Web.UI.WebControls.WebParts.WebPartZone.


Member NameDescription

A template that is instantiated multiple times.


A template that is instantiated only one time.


Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions:
Since: .NET 2.0