MindFusion.Scheduling for ASP.NET Programmer's Guide
XmlSerializationContext.ReadBool Method (String, XmlElement, Boolean)
See Also
 





Reads the boolean value with the specified name from the specified parent element.

Namespace: MindFusion.Scheduling
Assembly: MindFusion.Scheduling.WebForms

 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 that represents the name of the element to read.

parentElement
Type: XmlElement
An instance of the System.Xml.XmlElement class that specifies the parent element.
defaultValue

A boolean value that is returned if elementName is not found among the children of parentElement.

 Return Value

The bool value read; null (Nothing in Visual Basic) if reading has failed.

 Remarks

If no element with the specified name is found the method returns the default value specified.

 See Also

ReadBool Method Overload List
XmlSerializationContext Members
XmlSerializationContext Class
MindFusion.Scheduling Namespace