Share via


RenderingTemplate Class

Represents a hybrid Control-ITemplate object that can serve as a template for classes derived from TemplateBasedControl and can be manipulated, and called from .aspx pages, as any other control.

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    Microsoft.SharePoint.WebControls.RenderingTemplate

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class RenderingTemplate _
    Inherits Control

Dim instance As RenderingTemplate
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class RenderingTemplate : Control

Remarks

A RenderingTemplate object derives from Control and adds just one new member: a Template property that holds an ITemplate object. So several String properties in TemplateBasedControl (and classes derived from it) can reference ITemplate objects indirectly by referencing RenderingTemplate objects by their IDs.

A RenderingTemplate object is typically defined as a <RenderingTemplate> element in an .ascx file in the folder C:\program files\common files\microsoft shared\web server extensions\12\template\controltemplates.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

RenderingTemplate Members

Microsoft.SharePoint.WebControls Namespace