TemplateBasedControl.TemplateOverride Property

Gets or sets a value indicating whether the template referred to by the Template property or the one referred to by the AlternateTemplate property should be instantiated by the CreateChildControls method.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No


Protected Property TemplateOverride As TemplateOverride
Dim value As TemplateOverride

value = Me.TemplateOverride

Me.TemplateOverride = value
protected TemplateOverride TemplateOverride { get; set; }

Property Value

Type: Microsoft.SharePoint.WebControls.TemplateOverride
A TemplateOverride value that indicates whether a TemplateBasedControl object should render either its Template or AlternateTemplate or, whether it should let the logic of its own ControlTemplate property determine which template is rendered.

See Also


TemplateBasedControl Class

TemplateBasedControl Members

Microsoft.SharePoint.WebControls Namespace

Other Resources

How to: Create a Custom Field Type

Custom Field Types

Walkthrough: Creating a Custom Field Type