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
- name
Type: System.String
The name of the section to create.
- action
Type: System.Web.WebPages.SectionWriter
The type of action to take with the new section.