Click to Rate and Give Feedback
Collapse All/Expand All Collapse All
Microsoft Content Management Server 2002 .NET Class Reference
Template Class
Represents a Template stored in a Microsoft Content Management Server (MCMS) 2002 TemplateGallery.

Namespace: Microsoft.ContentManagement.Publishing
Assembly: Microsoft.ContentManagement.Publishing (in microsoft.contentmanagement.publishing.dll)

Visual Basic (Declaration)
Public NotInheritable Class Template
    Inherits TemplateGalleryItem
Visual Basic (Usage)
Dim instance As Template
C#
public sealed class Template : TemplateGalleryItem
C++
public ref class Template sealed : public TemplateGalleryItem
J#
public final class Template extends TemplateGalleryItem
JScript
public final class Template extends TemplateGalleryItem

Template objects are used to control the layout and text formatting of pages and their Posting objects. The PlaceholderDefinition objects within a Template define areas where authors are allowed to add content. The properties of a PlaceholderDefinition control the types of content the authors are allowed to add and the formatting they are able to apply to that content. Template designers can set the properties of a PlaceholderDefinition so that authors cannot change its content in any way. A non-editable PlaceholderDefinition is used to insert resources that should not be altered, such as company logos and copyright notices.

In a browser-based client, the Template object has two main functions. It gives access to various properties of the Template, such as the Name and Description, and it provides a URL for linking to a preview of the Template.

The MCMS Publishing API's TemplateCollection object represents a collection of Template objects.

Users cannot extend (or inherit from in Visual Basic) this class.

System.Object
   Microsoft.ContentManagement.Publishing.CmsObject
     Microsoft.ContentManagement.Publishing.HierarchyItem
       Microsoft.ContentManagement.Publishing.TemplateGalleryItem
        Microsoft.ContentManagement.Publishing.Template
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker