ASP.NET Pack Programmer's Guide
XmlPersistContext.ReadBool Method
See Also
 





Reads a boolean value with the specified name.

Namespace: MindFusion.UI.WebForms
Package: MindFusion.UI.WebForms

 Syntax

C#  Copy Code

public bool ReadBool (
    string elementName,
    XmlElement parentElement,
    bool defaultValue = false
)

Visual Basic  Copy Code

Public Function ReadBool( _
    elementName As String, _
    parentElement As XmlElement, _
    Optional defaultValue As Boolean = False _
) As Boolean

 Parameters

elementName

A string specifying the name of the element.

parentElement

The parent XML element.

defaultValue
Optional.

A default value to use, if no bool is read.

 Return Value

Type: Boolean
The read bool value

 See Also

XmlPersistContext Members
XmlPersistContext Class
MindFusion.UI.WebForms Namespace