Share via


WebPageBase.IsSectionDefined Method

Returns a value that indicates whether the specified section is defined in the page.

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

Syntax

'Declaration
Public Function IsSectionDefined ( _
    name As String _
) As Boolean
'Usage
Dim instance As WebPageBase 
Dim name As String 
Dim returnValue As Boolean 

returnValue = instance.IsSectionDefined(name)
public bool IsSectionDefined(
    string name
)
public:
bool IsSectionDefined(
    String^ name
)
member IsSectionDefined : 
        name:string -> bool
public function IsSectionDefined(
    name : String
) : boolean

Parameters

  • name
    Type: System.String
    The name of the section to search for.

Return Value

Type: System.Boolean
true if the specified section is defined in the page; otherwise, false.

See Also

Reference

WebPageBase Class

System.Web.WebPages Namespace