Sitecore 5.0 API

TemplateRecords Class

Retrieves templates from the database.

For a list of all members of this type, see TemplateRecords Members.

System.Object
   Sitecore.Data.TemplateRecords

[Visual Basic]
Public Class TemplateRecords
[C#]
public class TemplateRecords

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

A template defines the schema of an item. A schema describes which fields an item has and may contain default values for the fields, for instance a layout definition. Fields are grouped into sections that describe related fields. Templates supports inheritance.

Templates can be retrieved either using their ID or a path relative to the template root, e.g. "System/Folder".

The templates are normally access through the TemplatesTemplates property.

To create a new template use the CreateTemplate method.

Requirements

Namespace: Sitecore.Data

Assembly: Sitecore.Kernel (in Sitecore.Kernel.dll)

See Also

TemplateRecords Members | Sitecore.Data Namespace