ListFormWebPart.CreateChildControls 方法
创建子ListFormWebPart的控件。
命名空间: Microsoft.SharePoint.WebPartPages
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Protected Overrides Sub CreateChildControls
用法
Me.CreateChildControls()
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
protected override void CreateChildControls()
备注
如果Hidden属性为 false,则此重写创建ListFormWebPart的子控件。此重写为此 Web 部件中创建自定义内容不同,通过定义不同TemplateName。
此重写呼叫基类CreateChildControls() Web 部件是否在设计时模式下,该窗体是旧的窗体或Template属性未定义。否则,它会创建新TemplateContainer后基于ItemContext和PageType属性的值。