TemplateBasedControl 类
表示由模板,而不是列表的架构定义的控件。
继承层次结构
System.Object
System.Web.UI.Control
Microsoft.SharePoint.WebControls.SPControl
Microsoft.SharePoint.WebControls.TemplateBasedControl
命名空间: Microsoft.SharePoint.WebControls
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public Class TemplateBasedControl _
Inherits SPControl _
Implements INamingContainer
用法
Dim instance As TemplateBasedControl
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class TemplateBasedControl : SPControl,
INamingContainer
备注
用作此类 (或其派生类之一) 基类派生特定类型的呈现模板的控件。您可以使用附带Windows SharePoint Services 3.0的现有模板或创建您自己的。
模板是类型ITemplate的对象。通常,它们将作为RenderingTemplate.Template属性的值。RenderingTemplate对象是在位于以下文件夹中的.ascx 文件中定义的:
%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\Template\controltemplates
线程安全性
该类型的任何公共 静态 (已共享 在 Visual Basic 中) 成员都是线程安全的。不保证任何实例成员都是线程安全的。
另请参阅
引用
Microsoft.SharePoint.WebControls 命名空间
其他资源
Patterns of Custom Field Rendering
Walkthrough: Creating a Custom Field Type
继承层次结构
System.Object
System.Web.UI.Control
Microsoft.SharePoint.WebControls.SPControl
Microsoft.SharePoint.WebControls.TemplateBasedControl
Microsoft.SharePoint.WebControls.FormComponent
Microsoft.SharePoint.WebControls.ListViewSelector
Microsoft.SharePoint.WebControls.PagingButton
Microsoft.SharePoint.WebControls.RecentChangesIterator
Microsoft.SharePoint.WebControls.RecentChangesMenu
Microsoft.SharePoint.WebControls.TemplateContainer
Microsoft.SharePoint.WebControls.ToolBarMenuButton
Microsoft.SharePoint.WebControls.ViewToolBar
Microsoft.SharePoint.WebControls.WikiReport
Microsoft.SharePoint.WebControls.WikiReportIterator