FileField.ControlTemplate Property

Gets the template that renders the field label in the current context.

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

Syntax

'Declaration
Protected Overrides ReadOnly Property ControlTemplate As ITemplate
    Get
'Usage
Dim value As ITemplate

value = Me.ControlTemplate
protected override ITemplate ControlTemplate { get; }

Property Value

Type: System.Web.UI.ITemplate
A ITemplate that renders the control.

Remarks

When the control mode of the current context is New, (and the current list item is not a folder) this override of ControlTemplate returns Template. Otherwise, it returns AlternateTemplate.

See Also

Reference

FileField Class

FileField Members

Microsoft.SharePoint.WebControls Namespace