Export (0) Print
Expand All

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.


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

[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class RenderingTemplate : Control

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 %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\template\controltemplates.

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

Community Additions

© 2014 Microsoft