Share via


WebPageBase.DefineSection Method

Called by content pages to create named content sections.

Namespace:  System.Web.WebPages
Assembly:  System.Web.WebPages (in System.Web.WebPages.dll)

Syntax

'Declaration
Public Sub DefineSection ( _
    name As String, _
    action As SectionWriter _
)
'Usage
Dim instance As WebPageBase 
Dim name As String 
Dim action As SectionWriter

instance.DefineSection(name, action)
public void DefineSection(
    string name,
    SectionWriter action
)
public:
void DefineSection(
    String^ name, 
    SectionWriter^ action
)
member DefineSection : 
        name:string * 
        action:SectionWriter -> unit
public function DefineSection(
    name : String, 
    action : SectionWriter
)

Parameters

See Also

Reference

WebPageBase Class

System.Web.WebPages Namespace