ListFormWebPart.CreateChildControls method
建立子控制項的ListFormWebPart。
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<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的子控制項。這個覆寫定義不同的TemplateName,此 Web 組件建立不同的自訂內容。
這個覆寫呼叫基底類別CreateChildControls()如果是在設計階段模式下,表單的 [網頁組件是舊版的表單,或未定義的Template屬性中。否則,它會建立新TemplateContainer根據ItemContext和PageType屬性的值。