다음을 통해 공유


ListFormWebPart.CreateChildControls Method

Creates the child controls for the ListFormWebPart.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Protected Overrides Sub CreateChildControls
'Usage

Me.CreateChildControls()
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
protected override void CreateChildControls()

Remarks

This override creates the child controls for the ListFormWebPart if the Hidden property is false. This override creates different custom content for this Web Part by defining a different TemplateName.

This override calls the base class CreateChildControls() if the Web Part is in design time mode, the form is a legacy form, or the Template property is not defined. Otherwise, it creates a new TemplateContainer based on the values of the ItemContext and PageType properties.

See Also

Reference

ListFormWebPart Class

ListFormWebPart Members

Microsoft.SharePoint.WebPartPages Namespace