다음을 통해 공유


TemplateBasedControl.DefaultAlternateTemplateName Property

Gets the name of the default alternate rendering template.

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

Syntax

'Declaration
Protected Overridable ReadOnly Property DefaultAlternateTemplateName As String
    Get
'Usage
Dim value As String

value = Me.DefaultAlternateTemplateName
protected virtual string DefaultAlternateTemplateName { get; }

Property Value

Type: System.String
A String object that names a rendering template.

Remarks

Notes to Inheritors

The default implementation always returns a null reference (Nothing in Visual Basic).

In derived classes, the DefaultAlternateTemplateName property contains the value of the ID attribute of a <RenderingTemplate> element in an .aspx file that is located in the following folder:

%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\template\controltemplates

The ID attribute identifies the RenderingTemplate object that can be used as a fallback template if the AlternateTemplateName property is called before it has been set or, if for any reason, the template it names cannot be used.

See Also

Reference

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