MindFusion.UI for WebForms Programmer's Guide

XmlPersistContext.ReadBool Method (String, XmlElement, Boolean)

See Also
 





Reads a boolean value with the specified name.

Namespace: MindFusion.UI.Web
Assembly: MindFusion.UI.Web

 Syntax

C#  Copy Code

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

Visual Basic  Copy Code

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

 Parameters

elementName

Type: String
A string specifying the name of the element.

parentElement

Type: XmlElement
The parent XML element.

defaultValue

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

 Return Value

Type: Boolean
The read bool value

 See Also